You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Core]: Admin users are not supposed to be deleted #22
Users assigned the super_admin role must not be deletable through the Filament admin panel. Any attempt to trigger the delete action on an admin user must be blocked silently (action disabled) or with a visible notification, and the record must remain in the database.
Measurable
The delete table action is disabled/hidden for super_admin users in UsersTable
A non-admin user can still be deleted normally
Verified by two automated tests (see AAA below)
Achievable
Add a canDelete() guard to the delete action in Modules/Core/Filament/Admin/Resources/Users/Tables/UsersTable.php:
Activity
[-]Admin users are not supposed to be deleted[/-][+][Core]: Admin users are not supposed to be deleted[/+]feat(#22): prevent deletion of super_admin users