[wp-trac] [WordPress Trac] #50345: Add New User: Don't show roles dropdown if current user can't promote users
WordPress Trac
noreply at wordpress.org
Tue Jun 9 07:00:21 UTC 2020
#50345: Add New User: Don't show roles dropdown if current user can't promote users
----------------------------+-----------------------
Reporter: ocean90 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.5
Component: Users | Version:
Severity: normal | Keywords: has-patch
Focuses: administration |
----------------------------+-----------------------
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50345>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list