mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 19:14: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')
|
->modalHeading('Invite User')
|
||||||
->modalSubmitActionLabel('Invite')
|
->modalSubmitActionLabel('Invite')
|
||||||
->action(function (array $data, SubuserCreationService $service) use ($server) {
|
->action(function (Action $action, array $data, SubuserCreationService $service) use ($server) {
|
||||||
$email = strtolower($data['email']);
|
$email = strtolower($data['email']);
|
||||||
|
|
||||||
$permissions = collect($data)
|
$permissions = collect($data)
|
||||||
@ -413,8 +413,14 @@ class ListUsers extends ListRecords
|
|||||||
->body($exception->getMessage())
|
->body($exception->getMessage())
|
||||||
->danger()
|
->danger()
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
|
$action->failure();
|
||||||
|
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$action->success();
|
||||||
|
|
||||||
return redirect(self::getUrl(tenant: $server));
|
return redirect(self::getUrl(tenant: $server));
|
||||||
}),
|
}),
|
||||||
];
|
];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user