Opened 19 years ago
Closed 19 years ago
#1825 closed defect (bug) (fixed)
Display a User's Role in profile.php and user-edit.php
Reported by: | MichaelH | Owned by: | davidhouse |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | minor | Version: | 1.6 |
Component: | Administration | Keywords: | role capabilities bg|has-patch bg|squashed |
Focuses: | Cc: |
Description
The Users->Your Profile screen should display that user's current Role.
Actually, it's more important to show the user's Role in Users->Authors&Users; Edit a specific user (user-edit.php).
Attachments (4)
Change History (13)
#2
@
19 years ago
- Keywords bg|squashed added
- Owner changed from anonymous to davidhouse
- Status changed from new to assigned
Accepting and tagging as per westi's suggestions.
#3
@
19 years ago
With the patch installed, you can change a User's Role in user-edit.php, but you are allowed to "demote" yourself from being an administrator. As mentioned in Ticket 1645, the User should not be able to subtract edit_users capability from themselves.
To promote a user to administrator (that should kill ringmaster P) using phpMyAdmin, change wp_metauser for the user_id:
wp_capabilites to: a:1:{s:13:"administrator";b:1;} and wp_user_level to: 10
davidhouse: your patch does more than I asked for! Thanks.
@
19 years ago
Apply this after davidhouse's patch to prevent a edit_users user from demoting himself.
#5
@
19 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
Some code got left in that shouldn't have. My fault.
Applying the last patch will remove code from admin-functions.php that will ensure that the user can't remove the edit-users capability from himself.
Covers both requirements.