Prevent users from creating more than 1 or being a member of more than 1 organisation in single organisation configuration (Fixes #7)

This commit is contained in:
2022-02-22 11:02:16 +00:00
parent 16555bfafb
commit e92b80fbe1
4 changed files with 30 additions and 6 deletions

View File

@@ -59,6 +59,7 @@ return [
'PERMENENT_DELETION_SUCCESSFUL' => 'Successfully permenently deleted organisation <strong>{{name}}</strong>',
'NOT_A_MEMBER' => 'You are not a member of organisation <strong>{{name}}</strong>.',
'ALREADY_IN_ONE' => 'You are already in an organisation.',
'NAME' => [
1 => 'Organisation name',
@@ -74,6 +75,8 @@ return [
'REGISTER' => 'Register organisation',
'SUCCESSFUL' => 'Successfully registered organisation <strong>{{name}}</strong>',
'ALREADY_IN_ONE' => 'You cannot register a new organisation because you are already in another organisation. (only one organisation allowed)',
'CANCEL' => 'Cancel organisation registration',
'CANCEL_CONFIRM' => 'Are you sure you want to cancel the registration request for organisation <strong>{{name}}</strong>?',
'CANCEL_YES' => 'Yes, cancel organisation registration',
@@ -89,6 +92,8 @@ return [
'JOIN_REQUEST' => [
'SUBMIT_SUCCESSFUL' => 'Request to join organisation <strong>{{name}}</strong> sent',
'ALREADY_IN_ONE' => 'You cannot join another organisation because you are already in one (only one organisation allowed).',
'REQUEST' => 'Request to join organisation',
'CANCEL' => 'Cancel request to join organisation',