From 4bd115ba4d675644d920ef9b9571901c17d9ccb4 Mon Sep 17 00:00:00 2001 From: Craig Williams Date: Tue, 8 Feb 2022 09:34:26 +0000 Subject: [PATCH] Fixed merge_organisations permission check --- src/Controller/OrganisationController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); }