[wp-trac] [WordPress Trac] #35007: current_user_can('author') and current_user_can('contributor') returns true even if current user is administrator in multisite installation

WordPress Trac noreply at wordpress.org
Fri Dec 11 11:06:31 UTC 2015


#35007: current_user_can('author') and current_user_can('contributor') returns true
even if current user is administrator in multisite installation
-----------------------------+------------------------------
 Reporter:  edville101       |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Role/Capability  |     Version:  4.4
 Severity:  normal           |  Resolution:
 Keywords:  close            |     Focuses:  multisite
-----------------------------+------------------------------

Comment (by johnbillion):

 In [changeset:"35863"]:
 {{{
 #!CommitTicketReference repository="" revision="35863"
 Add assertions for role names as capabilities in the capabilities tests.
 This ensures the role name is only available as a capability to the
 corresponding role.

 See #35007
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35007#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list