[wp-trac] [WordPress Trac] #35806: Add filter to capability check when checking if user row is editable
WordPress Trac
noreply at wordpress.org
Fri Feb 12 02:56:28 UTC 2016
#35806: Add filter to capability check when checking if user row is editable
---------------------------+------------------------------
Reporter: nathanshubert | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses: administration
---------------------------+------------------------------
Comment (by nathanshubert):
Replying to [comment:1 boonebgorges]:
> A more integrated solution would be to introduce a mapped capability
`'list_user'`, and use it instead of `'list_users'` when deciding whether
to display a given row. Then your plugin could customize the capability by
using the 'map_meta_cap' filter.
That's a great idea, I like that even better ????
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35806#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list