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
|
return false; // org_admins cannot edit admins
|
||||||
}
|
}
|
||||||
if ($currentUser['role']['perm_group_admin']) {
|
if ($currentUser['role']['perm_group_admin']) {
|
||||||
$this->OrgGroup = TableRegistry::get('OrgGroup');
|
$this->OrgGroups = TableRegistry::get('OrgGroups');
|
||||||
if ($this->OrgGroup->checkIfUserBelongsToGroupAdminsGroup($currentUser, $user)) {
|
if ($this->OrgGroups->checkIfUserBelongsToGroupAdminsGroup($currentUser, $user)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue