Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/14/2011 06:51:25 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Add is_super_admin() check to beginning of bp_current_user_can() while in development to keep trunk working normally. See #3740.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-caps.php

    r5329 r5332  
    197197
    198198                // Misc
    199                 'moderate',
    200                 'throttle',
    201                 'view_trash'
     199                'bp_moderate',
     200                'bp_throttle',
     201                'bp_view_trash'
    202202            );
    203203
     
    210210
    211211                // Misc
    212                 'moderate',
    213                 'throttle',
    214                 'view_trash',
     212                'bp_moderate',
     213                'bp_throttle',
     214                'bp_view_trash',
    215215            );
    216216
     
    390390function bp_current_user_can( $capability, $blog_id = 0 ) {
    391391
     392    // @todo: remove this when implemented
     393    if ( is_super_admin() )
     394        return true;
     395
    392396    // Use root blog if no ID passed
    393397    if ( empty( $blog_id ) )
Note: See TracChangeset for help on using the changeset viewer.