#31223 closed defect (bug) (invalid)
current_user_can problem with edit_themes on network
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 4.1 |
| Component: | Users | Keywords: | reporter-feedback |
| Focuses: | Cc: |
Description
When I call current_user_can('edit_themes') I always get a false, even when the current user is a super-admin.
I have the same problem with current_user_can_for_blog(get_current_blog_id(), 'edit_themes')
Change History (3)
Note: See
TracTickets for help on using
tickets.
Please double-check whether
DISALLOW_FILE_MODSorDISALLOW_FILE_EDITis defined. When these aretruethe theme and plugin editors are disabled, and these capabilities will always befalse.