mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 11:04:45 +02:00
fix double notification when inviting subuser
This commit is contained in:
parent
6a8e8b87b4
commit
67ecdd9fb1
@ -383,7 +383,7 @@ class ListUsers extends ListRecords
|
||||
])
|
||||
->modalHeading('Invite User')
|
||||
->modalSubmitActionLabel('Invite')
|
||||
->action(function (array $data, SubuserCreationService $service) use ($server) {
|
||||
->action(function (Action $action, array $data, SubuserCreationService $service) use ($server) {
|
||||
$email = strtolower($data['email']);
|
||||
|
||||
$permissions = collect($data)
|
||||
@ -413,8 +413,14 @@ class ListUsers extends ListRecords
|
||||
->body($exception->getMessage())
|
||||
->danger()
|
||||
->send();
|
||||
|
||||
$action->failure();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
$action->success();
|
||||
|
||||
return redirect(self::getUrl(tenant: $server));
|
||||
}),
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user