Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/12/2019 08:45:34 PM (6 years ago)
Author:
dcavins
Message:

BP Nouveau: Use core logic for determining invite capability.

File:
1 edited

Legend:

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

    r12405 r12439  
    267267
    268268    // Check the current user's access to the group.
    269     $group = groups_get_group( $r['group_id'] );
    270     if ( ! $group->user_has_access && ! bp_current_user_can( 'bp_moderate' ) ) {
     269    if ( ! bp_groups_user_can_send_invites( $r['group_id'] ) ) {
    271270        return false;
    272271    }
Note: See TracChangeset for help on using the changeset viewer.