#31223 closed defect (bug) (invalid)
current_user_can problem with edit_themes on network
Reported by: | keraweb | 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_MODS
orDISALLOW_FILE_EDIT
is defined. When these aretrue
the theme and plugin editors are disabled, and these capabilities will always befalse
.