Opened 5 years ago
Closed 5 years ago
#50345 closed defect (bug) (fixed)
Add New User: Don't show roles dropdown if current user can't promote users
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Users | Keywords: | has-patch |
Focuses: | administration | Cc: |
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.
In 48042: