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

buddypress-trac noreply at wordpress.org
Fri Apr 13 14:01:13 UTC 2018


#7610: Use bp_user_can for some group-related permissions.
------------------------------+-----------------------
 Reporter:  dcavins           |       Owner:  dcavins
     Type:  enhancement       |      Status:  reopened
 Priority:  normal            |   Milestone:  3.0
Component:  Groups            |     Version:  2.9.0
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+-----------------------

Comment (by dcavins):

 In [changeset:"11970" 11970]:
 {{{
 #!CommitTicketReference repository="" revision="11970"
 Fix admin user cases in bp_groups_user_can_filter().

 If a user is an admin, he or she is pretty much allowed to do anything, so
 the capability has been approved before `bp_groups_user_can_filter()`
 filters the value. In a few cases, even admins need to satisfy a few other
 requirements before being allowed to do something, like request membership
 in a group, where even site admins need to not be members of the group.

 Props r-a-y, dcavins.

 See #7610.
 }}}

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


More information about the buddypress-trac mailing list