fix: [cleanup] ACL component

- duplicate check removed
pull/196/head
iglocska 2024-11-28 09:37:06 +01:00
parent 39e9fb4a76
commit 07f67fe9ea
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 0 additions and 3 deletions

View File

@ -386,9 +386,6 @@ class ACLComponent extends Component
if (!$currentUser['role']['perm_org_admin']) {
return false;
} else {
if ($currentUser['id'] == $user['id']) {
return true;
}
if ($currentUser['organisation_id'] === $user['organisation_id']) {
return true;
}