diff --git a/src/Controller/UsersController.php b/src/Controller/UsersController.php index 96c102f..bca2c5a 100644 --- a/src/Controller/UsersController.php +++ b/src/Controller/UsersController.php @@ -193,6 +193,7 @@ class UsersController extends AppController public function delete($id) { + $currentUser = $this->ACL->getUser(); $validRoles = []; if (!$currentUser['role']['perm_admin']) { $validRoles = $this->Users->Roles->find('list')->order(['name' => 'asc'])->all()->toArray();