Skip to:
Content

BuddyPress.org

Changeset 8145


Ignore:
Timestamp:
03/19/2014 05:40:44 PM (11 years ago)
Author:
imath
Message:

Prevent a regular administrator to change the profile of a super administrator

In Multisite configs where BuddyPress is not network activated, we need to make sure a regular admin cannot edit the BuddyPress profile of a Super Admin.

props boonebgorges, imath

Fixes #5463

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-members/bp-members-functions.php

    r8125 r8145  
    11691169    if ( bp_is_my_profile() )
    11701170        return true;
     1171
     1172    if ( is_super_admin( bp_displayed_user_id() ) && ! is_super_admin() ) {
     1173        return false;
     1174    }
    11711175
    11721176    if ( bp_current_user_can( 'bp_moderate' ) || current_user_can( 'edit_users' ) )
Note: See TracChangeset for help on using the changeset viewer.