Opened 8 years ago
Closed 8 years ago
#3126 closed defect (bug) (fixed)
Inconsistent capability checks when editing user role
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.6 | Priority: | high |
Severity: | normal | Version: | |
Component: | Component - Users | Keywords: | commit |
Cc: |
Description
User Role section in profiles is displayed with an 'edit_user' capability check, but is saved with a 'promote_user' check.
If the current user can edit_user
, but not promote_user
, this causes the existing role to be removed.
There should be a consistent capability check in both places, I think promote_user
fits better.
Change History (2)
Note: See
TracTickets for help on using
tickets.
Totally agree. Good spot.