Added capability for organisation administrators to accept/reject join requests, remove members, edit their details and reset their passwords

This commit is contained in:
2022-02-22 18:11:59 +00:00
parent 5456902f77
commit 0dbfbef594
14 changed files with 582 additions and 9 deletions

View File

@@ -101,6 +101,18 @@ return [
'CANCEL_YES' => 'Yes, cancel request',
'CANCEL_SUCCESSFUL' => 'Successfully cancelled request to join organisation <strong>{{name}}</strong>',
'ACCEPT' => 'Accept join request',
'ACCEPT_CONFIRM' => 'Are you sure you want to accept the request from user <strong>{{user_name}}</strong> to join organisation <strong>{{name}}</strong>?',
'ACCEPT_CONFIRM_EXTRA' => 'This will allow them to submit noise records on the organisation\'s behalf, view other members and make agent requests.',
'ACCEPT_YES' => 'Yes, accept request',
'ACCEPT_SUCCESSFUL' => 'Successfully accepted the request made by user <strong>{{user_name}}</strong> to join organisation <strong>{{name}}</strong>',
'REJECT' => 'Reject join request',
'REJECT_CONFIRM' => 'Are you sure you want to reject the request from user <strong>{{user_name}}</strong> to join organisation <strong>{{name}}</strong>?',
'REJECT_CONFIRM_EXTRA' => 'The requester will be notified of your rejection.',
'REJECT_YES' => 'Yes, reject request',
'REJECT_SUCCESSFUL' => 'Successfully rejected the request made by user <strong>{{user_name}}</strong> to join organisation <strong>{{name}}</strong>',
'ALREADY_MEMBER' => 'You are already a member of the organisation <strong>{{name}}</strong>.',
'REQUEST_PENDING' => 'You have already requested to join organisation <strong>{{name}}</strong>. Your request is awaiting approval.',
'NO_REQUEST' => 'You have no pending requests to join organisation <strong>{{name}}</strong>.',
@@ -108,12 +120,24 @@ return [
'TOKEN_NOT_FOUND' => 'User join request token does not exist / user join request has already been accepted/rejected.',
'ACCEPTED' => 'You have successfully accepted the request from user <strong>{{user_name}}</strong> to join organisation <strong>{{organisation_name}}</strong>.',
'REJECTED' => 'You have successfully rejected the request from user <strong>{{user_name}}</strong> to join organisation <strong>{{organisation_name}}</strong>.',
'ACCEPT' => 'Accept request to join',
'REJECT' => 'Reject request to join',
],
'MEMBER' => [
'NOT_FOUND' => 'User <strong>{{user_name}}</strong> is not a member of organisation <strong>{{name}}</strong>',
'REMOVE' => 'Remove member from organisation',
'REMOVE_CONFIRM' => 'Are you sure you want to remove member <strong>{{user_name}}</strong> from the organisation <strong>{{name}}</strong>?',
'REMOVE_YES' => 'Yes, remove member',
'REMOVE_SUCCESSFUL' => 'Successfully removed member <strong>{{user_name}}</strong> from organisation <strong>{{name}}</strong>',
],
],
'MEMBER' => [
1 => 'Member',
2 => 'Members',
'REMOVE' => 'Remove member',
],
'ADMIN' => [