[buddypress-trac] [BuddyPress Trac] #5482: No membership accept/reject buttons for group admins

buddypress-trac noreply at wordpress.org
Thu Mar 27 16:39:52 UTC 2014


#5482: No membership accept/reject buttons for group admins
--------------------------+-----------------------------
 Reporter:  Zsono         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Groups        |    Version:  1.9.2
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 I'd like to report a bug that blocks group admins/mods from accepting new
 users who requested membership to their group.

 Specs: using BuddyPress 1.9.2 with WordPress 3.8.1

 Problem: if I am an acknowledged member and admin/mod of a certain group
 and another user requests membership, I cannot accept/reject him or her,
 because I cannot see the Accept and Reject buttons on the group admin
 panel under Pending Members. It does not matter if I'm a website admin or
 anything else - once I join the group, these buttons are gone.

 Did a quick check in the code of the bp_button() function and found the
 following:
 // No button if you are the current user in a loop
 if ( true === $this->block_self && is_user_logged_in() &&
 bp_loggedin_user_id() === bp_get_member_user_id() )
 return false;

 I tried to output the last two values - bp_loggedin_user_id() and
 bp_get_member_user_id() - inside the bp_group_has_membership_requests()
 loop and:
 Case 1: if I am member of the group, they are the same, even though the
 user in the pending members loop is someone totally different;
 Case 2: if I remove myself from the group, the bp_loggedin_used_id()
 returns my ID and the bp_get_member_user_id() returns the ID of the
 pending member.


 Many thanks,

 Zsombor

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


More information about the buddypress-trac mailing list