fix: [typo] capitalisation mistake blocking org edits

cli-modification-summary
iglocska 2022-11-02 12:11:56 +01:00
parent 11510ea28f
commit 73ad04906a
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 2 additions and 2 deletions

View File

@ -101,8 +101,8 @@ class OrganisationsController extends AppController
{
$currentUser = $this->ACL->getUser();
if (
!($currentUser['Organisation']['id'] == $id && $currentUser['Role']['perm_org_admin']) &&
!$currentUser['Role']['perm_admin']
!($currentUser['organisation']['id'] == $id && $currentUser['role']['perm_org_admin']) &&
!$currentUser['role']['perm_admin']
) {
throw new MethodNotAllowedException(__('You cannot modify that organisation.'));
}