aboutsummaryrefslogtreecommitdiff
path: root/app/class/controlleruser.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2019-01-08 20:02:52 +0100
committervincent-peugnet <v.peugnet@free.fr>2019-01-08 20:02:52 +0100
commitacdbc686630f523cee598a95415b515d531b2bde (patch)
tree6c7f8760f21c046119cbe8b019a704825a2cf09c /app/class/controlleruser.php
parent7de50d7cc8722d229564488152bfb242adc2c80c (diff)
downloadwcms-acdbc686630f523cee598a95415b515d531b2bde.tar.gz
wcms-acdbc686630f523cee598a95415b515d531b2bde.zip
multi edit
Diffstat (limited to 'app/class/controlleruser.php')
-rw-r--r--app/class/controlleruser.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/class/controlleruser.php b/app/class/controlleruser.php
index 495fab5..2b32993 100644
--- a/app/class/controlleruser.php
+++ b/app/class/controlleruser.php
@@ -66,7 +66,7 @@ class Controlleruser extends Controller
$this->routedirectget('user', ['error' => 'change_password']);
} elseif (empty($userupdate->level())) {
$this->routedirectget('user', ['error' => 'wrong_level']);
- } elseif ($user->level() === 10 && $userupdate->level() !== 10) {
+ } elseif ($user->level() === 10 && $userupdate->level() !== 10 && $this->user->id() === $user->id()) {
$this->routedirectget('user', ['error' => 'cant_edit_yourself']);
} else {
$this->usermanager->add($userupdate);