[buddypress-trac] [BuddyPress Trac] #6031: Allow `bp_groups_user_can_send_invites()` to accept a user ID

buddypress-trac noreply at wordpress.org
Fri Jan 2 04:32:05 UTC 2015


#6031: Allow `bp_groups_user_can_send_invites()` to accept a user ID
-------------------------+---------------------
 Reporter:  dcavins      |       Owner:  r-a-y
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  2.2
Component:  Groups       |     Version:
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |
-------------------------+---------------------
Changes (by r-a-y):

 * owner:   => r-a-y
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"9293"]:
 {{{
 #!CommitTicketReference repository="" revision="9293"
 Add `$user_id` parameter to `bp_groups_user_can_send_invites()`.

 This allows developers to check if a specific user can send group invites
 rather than just do checks against the logged-in user.

 This commit also:
 * Updates the PHPDoc for the function and the filter hook.
 * Adds unit tests.

 Props dcavins.

 Fixes #6031.
 }}}

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


More information about the buddypress-trac mailing list