fix: [ACL] added correct file for previous fix (user edit admin permission check)
parent
204c60f739
commit
87723c2100
|
@ -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'];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue