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-filters.php

    r11299 r11703  
    310310function bp_groups_disable_at_mention_notification_for_non_public_groups( $send, $usernames, $user_id, BP_Activity_Activity $activity ) {
    311311    // Skip the check for administrators, who can get notifications from non-public groups.
    312     if ( user_can( $user_id, 'bp_moderate' ) ) {
     312    if ( bp_user_can( $user_id, 'bp_moderate' ) ) {
    313313        return $send;
    314314    }
Note: See TracChangeset for help on using the changeset viewer.