From d31bdd9970bceb83b9056a524acc6d34704084ff Mon Sep 17 00:00:00 2001 From: Craig Williams Date: Tue, 15 Feb 2022 15:47:01 +0000 Subject: [PATCH] Fixed backwards logic of cancellation requests --- src/Controller/OrganisationRegistrationController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controller/OrganisationRegistrationController.php b/src/Controller/OrganisationRegistrationController.php index 276b516..9ab55c9 100644 --- a/src/Controller/OrganisationRegistrationController.php +++ b/src/Controller/OrganisationRegistrationController.php @@ -202,7 +202,7 @@ class OrganisationRegistrationController extends SimpleController } // Check the user is registrant of this organisation - if ($organisation->registrant_id == $currentUser->id) { + if ($organisation->registrant_id != $currentUser->id) { throw new ForbiddenException(); } @@ -657,7 +657,7 @@ class OrganisationRegistrationController extends SimpleController } // Check the user is registrant of this organisation - if ($organisation->registrant_id == $currentUser->id) { + if ($organisation->registrant_id != $currentUser->id) { throw new ForbiddenException(); }