Skip to content

Commit

Permalink
fix: [cleanup] ACL component
Browse files Browse the repository at this point in the history
- duplicate check removed
  • Loading branch information
iglocska committed Nov 28, 2024
1 parent 39e9fb4 commit 07f67fe
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/Controller/Component/ACLComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -386,9 +386,6 @@ public function canEditUser(User $currentUser, User $user): bool
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;
}
Expand Down

0 comments on commit 07f67fe

Please sign in to comment.