[buddypress-trac] [BuddyPress Trac] #7677: Group with no admin or mod causes heavy user query
buddypress-trac
noreply at wordpress.org
Wed Jan 31 17:32:51 UTC 2018
#7677: Group with no admin or mod causes heavy user query
--------------------------+--------------------
Reporter: cyclic | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: Groups | Version: 2.9.2
Severity: normal | Resolution:
Keywords: needs-patch |
--------------------------+--------------------
Comment (by boonebgorges):
It looks like our protection happens at a higher level. We don't allow
users themselves to trigger a group-leave in the normal way (by clicking
Leave Group) if they're the only admin. See
https://buddypress.trac.wordpress.org/browser/tags/2.9.2/src/bp-groups/bp-
groups-actions.php?marks=481-488#L466 There's nothing deeper in our API
that prevents a group from being made admin-less or member-less. And,
generally speaking, I don't think there needs to be - it doesn't cause any
logical problems or anything if a group doesn't have members.
So I think what we need here is a fix for the runaway query, and possibly
for any other untenable weirdness that might arise in cases where all
members have been removed from a group. (where "untenable" means things
like fatal errors or fundamentally broken parts of the interface)
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7677#comment:7>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list