Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#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)

#1 @jdgrimes
7 years ago

  • Keywords reporter-feedback added

Please double-check whether DISALLOW_FILE_MODS or DISALLOW_FILE_EDIT is defined. When these are true the theme and plugin editors are disabled, and these capabilities will always be false.

#2 @keraweb
7 years ago

  • Resolution set to invalid
  • Status changed from new to closed

So sorry, I indeed have DISALLOW_FILE_EDIT defined as true.

Last edited 7 years ago by keraweb (previous) (diff)

#3 @TobiasBg
7 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.