mirror of
https://github.com/pelican-dev/panel.git
synced 2025-10-29 14:16:52 +01:00
Hide User reset password Action on create Operation (#1840)
This commit is contained in:
parent
3bcdeea800
commit
d1a808a746
@ -188,7 +188,7 @@ class UserResource extends Resource
|
||||
->hintAction(
|
||||
Action::make('password_reset')
|
||||
->label(trans('admin/user.password_reset'))
|
||||
->hidden(fn () => config('mail.default', 'log') === 'log')
|
||||
->hidden(fn (string $operation) => $operation === 'create' || config('mail.default', 'log') === 'log')
|
||||
->icon('tabler-send')
|
||||
->action(function (User $user) {
|
||||
$status = Password::broker(Filament::getPanel('app')->getAuthPasswordBroker())->sendResetLink([
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user