[buddypress-trac] [BuddyPress] #5076: Group Admin UI autocomplete should exclude admin, mods..
buddypress-trac
noreply at wordpress.org
Mon Jun 24 18:06:22 UTC 2013
#5076: Group Admin UI autocomplete should exclude admin, mods..
--------------------------+-----------------------------------
Reporter: imath | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Groups | Version: 1.8-beta
Severity: normal | Keywords: has-patch 2nd-opinion
--------------------------+-----------------------------------
Once on the admin group edit screen, we can use the excellent autocomplete
feature to add new members. The users that are already members are not
shown, but i've noticed that as an admin of the group, my name was
showing, so i can add myself a second time to the group. If i save, i have
a message saying that imath was successfully added to the group.
The problem seems to be that the arguments that is waited by
BP_Group_Member_Query is group_role and the one sent in
bp_groups_admin_autocomplete_handler() is group_type. So as the default
value for the argument group_role of BP_Group_Member_Query is array(
'member') it explains we cannot add a group member twice, but we can add a
group mod, a group admin twice..
I suggest the diff to be sure an admin or a mod aren't added twice.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5076>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list