Fixed merge_organisations permission check

This commit is contained in:
2022-02-08 09:34:26 +00:00
parent 19afb760a1
commit 4bd115ba4d

View File

@@ -363,7 +363,7 @@ class OrganisationController extends SimpleController
$currentUser = $this->ci->currentUser; $currentUser = $this->ci->currentUser;
// Access-controlled page // Access-controlled page
if (!$authorizer->checkAccess($currentUser, 'merge_organisation')) { if (!$authorizer->checkAccess($currentUser, 'merge_organisations')) {
throw new ForbiddenException(); throw new ForbiddenException();
} }
@@ -733,7 +733,7 @@ class OrganisationController extends SimpleController
$translator = $this->ci->translator; $translator = $this->ci->translator;
// Access-controlled resource - check that currentUser has permission to merge organisations. // Access-controlled resource - check that currentUser has permission to merge organisations.
if (!$authorizer->checkAccess($currentUser, 'organisation_merge')) { if (!$authorizer->checkAccess($currentUser, 'merge_organisations')) {
throw new ForbiddenException(); throw new ForbiddenException();
} }