[wp-trac] [WordPress Trac] #41059: Prevent `do_not_allow` from being added as a capability

WordPress Trac noreply at wordpress.org
Sun Jul 2 05:15:44 UTC 2017


#41059: Prevent `do_not_allow` from being added as a capability
--------------------------------------+----------------------------
 Reporter:  peterwilsoncc             |       Owner:  peterwilsoncc
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  4.9
Component:  Role/Capability           |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch needs-dev-note  |     Focuses:
--------------------------------------+----------------------------
Changes (by peterwilsoncc):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"40993"]:
 {{{
 #!CommitTicketReference repository="" revision="40993"
 Capabilities: Prevent users having the `do_not_allow` capability.

 Meta capabilities use the capability `do_not_allow` to indicate a user
 should be blocked from performing a particular action. This ensures users
 can not have the capability as it would cause unexpected behaviour.

 Props johnbillion.
 Fixes #41059.
 }}}

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


More information about the wp-trac mailing list