diff --git a/src/Controller/UsersController.php b/src/Controller/UsersController.php index 6331d7b..36a69cf 100644 --- a/src/Controller/UsersController.php +++ b/src/Controller/UsersController.php @@ -97,7 +97,7 @@ class UsersController extends AppController public function edit($id = false) { $currentUser = $this->ACL->getUser(); - if (empty($id) || (empty($currentUser['role']['perm_org_admin']) && empty($currentUser['role']['perm_site_admin']))) { + if (empty($id) || (empty($currentUser['role']['perm_org_admin']) && empty($currentUser['role']['perm_admin']))) { $id = $currentUser['id']; }