fix: [individuals:canEdit] Changed function from public to private

refacto/CRUDComponent
Sami Mokaddem 2023-02-27 12:14:13 +01:00
parent c8e5823393
commit ce8a7ba1be
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
2 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ class IndividualsController extends AppController
}
}
public function canEdit($indId): bool
private function canEdit($indId): bool
{
$currentUser = $this->ACL->getUser();
if ($currentUser['role']['perm_admin']) {

View File

@ -170,7 +170,7 @@ class OrganisationsController extends AppController
}
}
public function canEdit($orgId): bool
private function canEdit($orgId): bool
{
$currentUser = $this->ACL->getUser();
if ($currentUser['role']['perm_admin']) {