Opened 16 years ago
Closed 16 years ago
#13137 closed defect (bug) (fixed)
Unable to edit users in 3.0 beta 1
| Reported by: | numeeja | Owned by: | |
|---|---|---|---|
| Priority: | high | Milestone: | 3.0 |
| Component: | Administration | Version: | 3.0 |
| Severity: | critical | Keywords: | |
| Cc: | Focuses: |
Description
Using the latest nightly build, when signed in as an admin user and going into Users -> Authors & users, I am unable to edit user accounts apart from the user I am logged on as.
I can create & delete other users, but there is no option to edit the users. I have tried this on a fresh install and was able to reproduce the same issue. Also the issue has be confirmed by other users.
Attachments (1)
Change History (8)
#1
@
16 years ago
- Component General → Administration
- Keywords has-patch added
- Milestone Unassigned → 3.0
- Priority normal → high
- Version → 3.0
@
16 years ago
edit_users instead of edit_user capability check. also remove redundant $edit declaration that is identical to one just below
#2
@
16 years ago
Actually, my patch isn't correct so please ignore it. But the current check ( current_user_can('edit_user', $user_object->ID)) is returning false even for super-admins.
#6
@
16 years ago
- Keywords needs-patch added
- Resolution fixed
- Status closed → reopened
The issue still exists in revision [14321]. If you are using multisite and logged in as blog admin (not super admin) the edit_users capability returns false, affecting the edit links on the users page and any plugins that rely on it. Discovered when my admin menu wasn't being added:
add_menu_page('Test', 'Test', 'edit_users', 'test', 'my_output');
This may affect other capabilities as well. Testing...
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
This appears to be caused by a typo in one of the changes made wrt #13074 - "edit_user" instead of "edit_users". This patch fixes it.