[wp-trac] [WordPress Trac] #36368: Add `access_admin` capability (was: Add capability for `admin_access`)
WordPress Trac
noreply at wordpress.org
Thu Mar 31 03:20:53 UTC 2016
#36368: Add `access_admin` capability
-----------------------------+------------------------------
Reporter: krogsgard | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version:
Severity: normal | Resolution:
Keywords: | Focuses: administration
-----------------------------+------------------------------
Comment (by rmccue):
Following the general pattern of `verb_noun`, this should be
`access_admin`, as in `current_user_can( 'access_admin' )`.
I'm not sure I'm a fan of this, since I can't really see a reason why
users shouldn't be able to access their own profile, for example. I think
if you want that behaviour, you should be handling it via other
actions/filters rather than via capabilities.
Replying to [comment:2 krogsgard]:
> This came about because I was having an issue where WooCommerce
customers who were also authors/editors lost admin access, and it turns
out to be from some multi-role issues and various capability checking.
For reference, this is #36376.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36368#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list