fix: [ACL] added correct file for previous fix (user edit admin permission check)

pull/92/head
iglocska 2022-01-12 10:32:47 +01:00
parent 204c60f739
commit 87723c2100
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ class UsersController extends AppController
public function edit($id = false) public function edit($id = false)
{ {
$currentUser = $this->ACL->getUser(); $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']; $id = $currentUser['id'];
} }