Skip to:
Content

BuddyPress.org

Ticket #4296: bp-core-caps.diff

File bp-core-caps.diff, 474 bytes (added by imath, 12 years ago)
  • bp-core/bp-core-caps.php

     
    380380function bp_current_user_can( $capability, $blog_id = 0 ) {
    381381
    382382        // @todo: remove this when implemented
    383         if ( is_super_admin() )
     383        if ( is_super_admin() && $capability != 'bp_xprofile_change_field_visibility' )
    384384                return true;
    385385
    386386        // Use root blog if no ID passed