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-xprofile/bp-xprofile-screens.php

    r5301 r5329  
    3333    global $bp;
    3434
    35     if ( !bp_is_my_profile() && !is_super_admin() )
     35    if ( !bp_is_my_profile() && !bp_current_user_can( 'bp_moderate' ) )
    3636        return false;
    3737
     
    132132    global $bp;
    133133
    134     if ( !bp_is_my_profile() && !is_super_admin() )
     134    if ( !bp_is_my_profile() && !bp_current_user_can( 'bp_moderate' ) )
    135135        return false;
    136136
Note: See TracChangeset for help on using the changeset viewer.