Fixed backwards logic of cancellation requests
This commit is contained in:
1 parent
cd8a16f4a8
commit
d31bdd9970
1 file changed
+2
-2
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user