Added some extra checks to ensure the user is not already in the organisation they are attempting to join

This commit is contained in:
bwilliams committed 2022-03-08 15:35:22 +00:00
1 parent 340413ff38
commit 52b5a880b2
2 files changed
+54 -1

No files matched your search

+1
View File
@@ -128,6 +128,7 @@ return [
'REJECT' => 'Reject request to join',
],
'MEMBER' => [
'ALREADY_EXISTS' => 'User <strong>{{user_name}}</strong> is already a member of organisation <strong>{{name}}</strong>',
'NOT_FOUND' => 'User <strong>{{user_name}}</strong> is not a member of organisation <strong>{{name}}</strong>',
'NOT_AN_ADMIN' => 'User <strong>{{user_name}}</strong> is not an administrator of organisation <strong>{{name}}</strong>',
'ALREADY_AN_ADMIN' => 'User <strong>{{user_name}}</strong> is already an administrator of organisation <strong>{{name}}</strong>',