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-core/bp-core-buddybar.php

    r5313 r5329  
    3131
    3232    // If this is for site admins only and the user is not one, don't create the subnav item
    33     if ( $site_admin_only && !is_super_admin() )
     33    if ( $site_admin_only && !bp_current_user_can( 'bp_moderate' ) )
    3434        return false;
    3535
     
    210210
    211211    // If this is for site admins only and the user is not one, don't create the subnav item
    212     if ( $site_admin_only && !is_super_admin() )
     212    if ( $site_admin_only && !bp_current_user_can( 'bp_moderate' ) )
    213213        return false;
    214214
Note: See TracChangeset for help on using the changeset viewer.