Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/14/2011 05:19:12 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Find/replace on is_super_admin() to use bp_current_user_can( 'bp_moderate' ). See #3740.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-members/bp-members-actions.php

    r5301 r5329  
    3333
    3434    // Only super admins can currently spam users
    35     if ( !is_super_admin() || bp_is_my_profile() )
     35    if ( !bp_current_user_can( 'bp_moderate' ) || bp_is_my_profile() )
    3636        return;
    3737
     
    123123    global $bp;
    124124
    125     if ( !is_super_admin() || bp_is_my_profile() || !bp_displayed_user_id() )
     125    if ( !bp_current_user_can( 'bp_moderate' ) || bp_is_my_profile() || !bp_displayed_user_id() )
    126126        return false;
    127127
Note: See TracChangeset for help on using the changeset viewer.