Move the logic preventing non-super-admins from deleting themselves into `map_meta_cap()`
|Reported by:||flixos90||Owned by:||flixos90|
|Component:||Role/Capability||Keywords:||has-patch has-unit-tests commit|
This is part of the #37616 task. In wp-admin/users.php there are two ! is_super_admin() checks to prevent non-super-admins from deleting themselves. This logic should rather be placed in map_meta_cap() instead of being duplicated in that file. Furthermore, since the mentioned ticket aims at removing is_super_admin() checks outside of map_meta_cap(), this will also fulfill that task's goal for these two occurrences.
Change History (5)
- Keywords has-patch has-unit-tests added; needs-patch needs-unit-tests removed
- Owner set to flixos90
- Status changed from new to assigned