fix: [individuals:canEdit] Changed function from public to private
parent
c8e5823393
commit
ce8a7ba1be
|
@ -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']) {
|
||||
|
|
|
@ -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']) {
|
||||
|
|
Loading…
Reference in New Issue