fix: [typo] capitalisation mistake blocking org edits
parent
11510ea28f
commit
73ad04906a
|
@ -101,8 +101,8 @@ class OrganisationsController extends AppController
|
||||||
{
|
{
|
||||||
$currentUser = $this->ACL->getUser();
|
$currentUser = $this->ACL->getUser();
|
||||||
if (
|
if (
|
||||||
!($currentUser['Organisation']['id'] == $id && $currentUser['Role']['perm_org_admin']) &&
|
!($currentUser['organisation']['id'] == $id && $currentUser['role']['perm_org_admin']) &&
|
||||||
!$currentUser['Role']['perm_admin']
|
!$currentUser['role']['perm_admin']
|
||||||
) {
|
) {
|
||||||
throw new MethodNotAllowedException(__('You cannot modify that organisation.'));
|
throw new MethodNotAllowedException(__('You cannot modify that organisation.'));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue