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-settings/bp-settings-loader.php

    r5300 r5329  
    111111
    112112        // Add Delete Account nav item
    113         if ( !is_super_admin() && empty( $bp->site_options['bp-disable-account-deletion'] ) ) {
     113        if ( !bp_current_user_can( 'bp_moderate' ) && empty( $bp->site_options['bp-disable-account-deletion'] ) ) {
    114114            $sub_nav[] = array(
    115115                'name'            => __( 'Delete Account', 'buddypress' ),
     
    169169
    170170            // Delete Account
    171             if ( !is_super_admin() && empty( $bp->site_options['bp-disable-account-deletion'] ) ) {
     171            if ( !bp_current_user_can( 'bp_moderate' ) && empty( $bp->site_options['bp-disable-account-deletion'] ) ) {
    172172                $wp_admin_nav[] = array(
    173173                    'parent' => 'my-account-' . $this->id,
Note: See TracChangeset for help on using the changeset viewer.