Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/25/2019 02:53:02 PM (6 years ago)
Author:
boonebgorges
Message:

Nouveau: Improved capability check when fetching pending group invites.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/includes/groups/functions.php

    r12156 r12383  
    259259    }
    260260
     261    // Check the current user's access to the group.
     262    $group = groups_get_group( $r['group_id'] );
     263    if ( ! $group->user_has_access && ! bp_current_user_can( 'bp_moderate' ) ) {
     264        return false;
     265    }
     266
    261267    /*
    262268     * If it's not a friend request and users can restrict invites to friends,
Note: See TracChangeset for help on using the changeset viewer.