[buddypress-trac] [BuddyPress Trac] #7610: Use bp_user_can for some group-related permissions.

buddypress-trac noreply at wordpress.org
Tue Oct 17 14:59:10 UTC 2017

#7610: Use bp_user_can for some group-related permissions.
 Reporter:  dcavins      |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Groups       |    Version:  2.9.0
 Severity:  normal       |   Keywords:  has-patch
 In many places in the groups component, we're applying checks to determine
 if a user can do something. These checks can be fairly complicated and are
 duplicated wherever they are needed. I'd like to move to a more
 centralized approach using `bp_user_can()` when possible. In addition to
 standardizing the permission checks, this will add a filter point that
 devs can use.

 This also helps lay the groundwork for future changes making group
 statuses more flexible.

 Thanks for your feedback!

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7610>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list