Opened 6 years ago
Closed 6 years ago
#50345 closed defect (bug) (fixed)
Add New User: Don't show roles dropdown if current user can't promote users
| Reported by: | ocean90 | Owned by: | ocean90 |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.5 |
| Component: | Users | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | administration |
Description
A user with the create_users cap but without the promote_users cap can still select a role on wp-admin/user-new.php. Though, the role doesn't get used due to the additional cap check in edit_user(). Therefore we should remove the roles dropdown on the page to avoid confusion.
Attachments (1)
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 48042: