[buddypress-trac] [BuddyPress Trac] #6501: Allow additional arguments to be passed to bp_current_user_can()
buddypress-trac
noreply at wordpress.org
Fri Jun 19 17:46:22 UTC 2015
#6501: Allow additional arguments to be passed to bp_current_user_can()
------------------------------------+------------------
Reporter: thebrandonallen | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 2.4
Component: API - Roles/Capability | Version: 1.6
Severity: normal | Resolution:
Keywords: has-patch |
------------------------------------+------------------
Comment (by r-a-y):
> bp_current_user_can() is still slightly different from
current_user_can(), because current_user_can() can take a scalar as the
item_id/third argument.
True, but I think the array format is easier to read for devs when coding
the map_meta_caps portion. I think this beats WP core.
With WP, I don't think you can do multiple item ID checks, so that's
another potential positive for BP.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6501#comment:4>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list