Opened 17 years ago
Closed 17 years ago
#12793 closed enhancement (fixed)
User without 'delete_user' capability has a link to delete an user
| Reported by: | Horttcore | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 3.0 |
| Component: | Role/Capability | Version: | 2.9.2 |
| Severity: | trivial | Keywords: | has-patch |
| Cc: | Focuses: |
Description
In WordPress backend on the users.php
If a user has the capability 'edit_user', he has a link 'delete user' even if he hasnt the capability 'delete_user'.
This Link should be hidden if the user has no delete capability.
Attachments (1)
Change History (7)
#1
@
17 years ago
- Component Users → Role/Capability
- Keywords has-patch added; user capability delete users.php removed
- Milestone Future Release → 3.0
#3
@
17 years ago
Hmm. remove_user is a primitive capability, not a meta cap, so it can't be used like this. That said, as far as I can tell, it *should* be a meta cap instead of a primitive cap (mapping directly to remove_users), which means we'd need to remove it from the schema.
#4
@
17 years ago
nacin: i use the same function as we used it in users.php line 96
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Patch added.