diff --git a/src/Controller/OrganisationController.php b/src/Controller/OrganisationController.php index 9701015..73eb264 100644 --- a/src/Controller/OrganisationController.php +++ b/src/Controller/OrganisationController.php @@ -363,7 +363,7 @@ class OrganisationController extends SimpleController $currentUser = $this->ci->currentUser; // Access-controlled page - if (!$authorizer->checkAccess($currentUser, 'merge_organisation')) { + if (!$authorizer->checkAccess($currentUser, 'merge_organisations')) { throw new ForbiddenException(); } @@ -733,7 +733,7 @@ class OrganisationController extends SimpleController $translator = $this->ci->translator; // 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(); }