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

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

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>',