fix: [acl:canEditUser] Typo in table name
parent
b2df8192f7
commit
e64f4c341f
|
@ -360,8 +360,8 @@ class ACLComponent extends Component
|
|||
return false; // org_admins cannot edit admins
|
||||
}
|
||||
if ($currentUser['role']['perm_group_admin']) {
|
||||
$this->OrgGroup = TableRegistry::get('OrgGroup');
|
||||
if ($this->OrgGroup->checkIfUserBelongsToGroupAdminsGroup($currentUser, $user)) {
|
||||
$this->OrgGroups = TableRegistry::get('OrgGroups');
|
||||
if ($this->OrgGroups->checkIfUserBelongsToGroupAdminsGroup($currentUser, $user)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue