[buddypress-trac] [BuddyPress Trac] #8728: Group Moderator Unable Delete Group Posts

buddypress-trac noreply at wordpress.org
Sat Apr 27 19:43:56 UTC 2024


#8728: Group Moderator Unable Delete Group Posts
-------------------------------------------------+-------------------------
 Reporter:  kainelabsteam                        |       Owner:  emaralive
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  14.0.0
Component:  Groups                               |     Version:  10.3.0
 Severity:  normal                               |  Resolution:
 Keywords:  dev-feedback has-patch has-unit-     |
  tests                                          |
-------------------------------------------------+-------------------------

Comment (by emaralive):

 Just to make sure everyone is notified, in alphabetical order, @dcavins,
 @espellcaste, @imath & @vapvarun:

 * Thanks to @espellcaste, there are unit tests.
 * Thanks to @imath for providing enlightenment regarding consideration for
 the **BP REST API**
 * Thanks to @dcavins, the text he provided for !BuddyPress Settings has
 been incorporated (see **screenshot** screenshot-
 win10-me-2024.04.18-09_07_40.png)

 Additionally, after some deliberation, I am forgoing the notion I had
 about adding radio buttons (granularity of control) on the **Group
 Settings** page/screen with the rational that **Group Admins** will,
 already, have control over who can **delete** Group Activity content via
 the promote/demote capability.

 Furthermore, I removed the **{{{groups_is_user_creator}}}** function from
 the **{{{bp_groups_filter_activity_user_can_delete}}}** callback, due to
 the fact that a:
 1. **Group Creator** is by default a **Group Admin**
 2. **Group Creator** is actually not considered a part of **Group Roles**,
 e.g., **admin, mod, member, banned**
 3. **Group Creator** can actually be demoted, banned or removed by another
 **Group Admin** or by a **Site Admin**

 In the event of **item 3**, a loophole would have been present (with the
 presence of the **{{{groups_is_user_creator}}}** function) that would have
 allowed the **Group Creator** to delete Group Activity content.

 The **8728.04 patch** should represent the aforementioned additions,
 removals and omissions. Barring any additional recommendations, errors,
 etc., this may be the final patch.

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


More information about the buddypress-trac mailing list