[buddypress-trac] [BuddyPress Trac] #9163: Admin cannot be demoted or removed from a group when he's the only one left

buddypress-trac noreply at wordpress.org
Sat May 25 01:38:08 UTC 2024


#9163: Admin cannot be demoted or removed from a group when he's the only one left
--------------------------+--------------------------
 Reporter:  espellcaste   |       Owner:  espellcaste
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  14.0.0
Component:  Groups        |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+--------------------------
Changes (by emaralive):

 * cc: emaralive (added)


Comment:

 @espellcaste FWIW, I believe this is isolated to Site Admins whereby they
 and only they can demote all **Group admins** to a role of **Group Mod**
 or **Group Member**, leaving a Group with no **Group Admins** via the
 **REST API** (additionally, I believe the **!BuddyPress Nouveau template
 pack** utilizes the **REST API**) and **BP ClI**.

 In a nutshell, the **!BuddyPress Legacy template pack** checks if there
 are any **Group Admins** left after a demotion attempt (See
 [https://github.com/buddypress/buddypress/blob/master/src/bp-groups/bp-
 groups-admin.php#L387-L401 Lines 387 - 401] of **{{{src/bp-groups/bp-
 groups-admin.php}}}** and cast an error, if not (including if a **Site
 Admin** attempts this action). Needless to say, this appears not to be the
 case for the **REST API** and **BP ClI** as it pertains to the **Site
 Admin**.

 Regarding, **BP ClI** I was waiting for BP 14 to be introduced, since
 version 3.0.0 is proposed to be included, before submitting tickets
 against this version. However, since @needle included this deficiency
 within #9158 and @imath brought up this ticket within dev-chat for May 22,
 2024 , I thought I would include a **bye to bye** during dev-chat.

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


More information about the buddypress-trac mailing list