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

    r5322 r5329  
    268268                // in user is a super admin)
    269269                if ( bp_displayed_user_id() && bp_is_user_spammer( bp_displayed_user_id() ) ) {
    270                     if ( is_super_admin() ) {
     270                    if ( bp_current_user_can( 'bp_moderate' ) ) {
    271271                        bp_core_add_message( __( 'This user has been marked as a spammer. Only site admins can view this profile.', 'buddypress' ), 'warning' );
    272272                    } else {
Note: See TracChangeset for help on using the changeset viewer.