[buddypress-trac] [BuddyPress Trac] #5121: Review and improve capabilities checks

buddypress-trac noreply at wordpress.org
Sun Jun 21 06:10:06 UTC 2015


#5121: Review and improve capabilities checks
------------------------------------+------------------------------
 Reporter:  ericlewis               |       Owner:  johnjamesjacoby
     Type:  enhancement             |      Status:  accepted
 Priority:  normal                  |   Milestone:  Future Release
Component:  API - Roles/Capability  |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  dev-feedback            |
------------------------------------+------------------------------

Comment (by johnjamesjacoby):

 Great progress so far. A few thoughts:

 * Does this belong in `BP_Component`, or should each component have a new
 file and Core a new base class?
 * What about more complex components like Groups, which may have
 capabilities for each sub-navigation item?
 * What about less complex components like Friends, which need many-to-many
 capabilities?
 * What about roles and capability groups, so each component has it's own
 ranking system for roles? Group(s)
 Administrator/Moderator/Member/Participant/Blocked
 * Like Eric Lewis started 23 months ago, what exactly can we learn & copy
 from WordPress posts?
 * Note that BuddyPress has it's own `bp_map_meta_caps` sub-filter to hook
 into – any reason not to use it; priority, or otherwise?

 We need to start somewhere, and this momentum is good, and the approach so
 far seems sound. I just know between core & bbPress, the `map_meta_cap`
 space becomes very crowded, and we have a lot of future architecting to do
 here, and I want to make sure we nail this the first time.

 Has anyone (else) looked deeply into WordPress's `WP_Roles` API to see if
 there are other optimizations or approaches worth exploring? Any other
 CMS's doing anything interesting in this space, where maybe an entirely
 new `bp-capabilities` component could own this entire experience?

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5121#comment:26>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list