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

    r5301 r5329  
    3030    check_admin_referer( 'bp_delete_avatar_link' );
    3131
    32     if ( !bp_is_my_profile() && !is_super_admin() )
     32    if ( !bp_is_my_profile() && !bp_current_user_can( 'bp_moderate' ) )
    3333        return false;
    3434
Note: See TracChangeset for help on using the changeset viewer.