Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/27/2017 09:08:35 AM (7 years ago)
Author:
djpaul
Message:

Core: when checking for bp_moderate capability, use bp_current_user_can().

Fixes #7598

Props meitar for initial patch.

File:
1 edited

Legend:

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

    r11661 r11703  
    23592359    if ( $user_id ) {
    23602360        // Users with the 'bp_moderate' cap can always send invitations.
    2361         if ( user_can( $user_id, 'bp_moderate' ) ) {
     2361        if ( bp_user_can( $user_id, 'bp_moderate' ) ) {
    23622362            $can_send_invites = true;
    23632363        } else {
Note: See TracChangeset for help on using the changeset viewer.