merge master
This commit is contained in:
parent
b5e980df2c
commit
034becdd07
@ -207,7 +207,7 @@ class user extends common
|
|||||||
// L'utilisateur n'existe pas
|
// L'utilisateur n'existe pas
|
||||||
$this->getData(['user', $this->getUrl(2)]) === null
|
$this->getData(['user', $this->getUrl(2)]) === null
|
||||||
// Groupe insuffisant
|
// Groupe insuffisant
|
||||||
and ($this->getUser('group') < self::GROUP_EDITOR)
|
and ($this->getUser('role') < self::GROUP_EDITOR)
|
||||||
) {
|
) {
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
@ -254,10 +254,10 @@ class user extends common
|
|||||||
and (
|
and (
|
||||||
// Impossible de s'auto-éditer
|
// Impossible de s'auto-éditer
|
||||||
($this->getUser('id') === $this->getUrl(2)
|
($this->getUser('id') === $this->getUrl(2)
|
||||||
and $this->getUrl('role') <= self::ROLE_VISITOR
|
and $this->getUser('role') <= self::ROLE_VISITOR
|
||||||
)
|
)
|
||||||
// Impossible d'éditer un autre utilisateur
|
// Impossible d'éditer un autre utilisateur
|
||||||
or ($this->getUrl('role') < self::ROLE_EDITOR)
|
or ($this->getUser('role') < self::ROLE_EDITOR)
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
|
Loading…
x
Reference in New Issue
Block a user