Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/21/2020 06:12:25 PM (6 years ago)
Author:
boonebgorges
Message:

Improve permission check when validating activity permission requests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-template.php

    r12586 r12629  
    15791579        }
    15801580
    1581         // Viewing a single item, and this user is an admin of that item.
    1582         if ( bp_is_single_item() && bp_is_item_admin() ) {
     1581        /*
     1582         * Viewing a single item, and this user is an admin of that item.
     1583         *
     1584         * Group activity items are handled separately.
     1585         * See bp_groups_filter_activity_user_can_delete().
     1586         */
     1587        if ( 'groups' !== $activity->component && bp_is_single_item() && bp_is_item_admin() ) {
    15831588            $can_delete = true;
    15841589        }
Note: See TracChangeset for help on using the changeset viewer.