parent
39e9fb4a76
commit
07f67fe9ea
|
@ -386,9 +386,6 @@ class ACLComponent extends Component
|
||||||
if (!$currentUser['role']['perm_org_admin']) {
|
if (!$currentUser['role']['perm_org_admin']) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
if ($currentUser['id'] == $user['id']) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if ($currentUser['organisation_id'] === $user['organisation_id']) {
|
if ($currentUser['organisation_id'] === $user['organisation_id']) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue