aboutsummaryrefslogtreecommitdiff
path: root/app/class/controlleruser.php
diff options
context:
space:
mode:
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);