[wp-trac] [WordPress Trac] #43210: Introduce singular capabilities for managing individual options

WordPress Trac noreply at wordpress.org
Thu Apr 19 21:52:52 UTC 2018


#43210: Introduce singular capabilities for managing individual options
-------------------------------------------------+-------------------------
 Reporter:  flixos90                             |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Role/Capability                      |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  2nd-opinion granular-capabilities    |     Focuses:  rest-api
  has-patch                                      |
-------------------------------------------------+-------------------------

Comment (by dlh):

 A singular capability for managing individual options seems to me like a
 great enhancement. However, I'm not sure I understand the behavior of the
 filter in [attachment:43210.diff], if I'm following it correctly.

 It's described as filtering "whether the user is allowed to manage an
 option." But if the value of `$allowed` is filtered to `true`, the user
 isn't necessarily allowed to manage the option, as they still need
 `manage_options`. If the value of `$allowed` is `false`, the user isn't
 necessarily blocked from managing the option, at least in the way they
 would be with `do_not_allow`. Instead, they just need another capability.

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


More information about the wp-trac mailing list