fix filament resource notify

This commit is contained in:
xiaomlove
2025-02-08 01:24:29 +08:00
parent 4a0475b49c
commit e45b7c42f0
9 changed files with 20 additions and 26 deletions
@@ -250,7 +250,7 @@ class UserProfile extends ViewRecord
->requiresConfirmation()
->action(function () {
if (Auth::user()->class <= $this->record->class) {
$this->notify('danger', 'No permission!');
send_admin_fail_notification("No permission!");
return;
}
$this->record->status = User::STATUS_CONFIRMED;