diff --git a/src/Controller/Component/ACLComponent.php b/src/Controller/Component/ACLComponent.php index 52c8b07..a82964e 100644 --- a/src/Controller/Component/ACLComponent.php +++ b/src/Controller/Component/ACLComponent.php @@ -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; } }