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-themes/bp-default/_inc/ajax.php

    r5328 r5329  
    298298
    299299    /* Check access */
    300     if ( !is_super_admin() && $comment->user_id != bp_loggedin_user_id() )
     300    if ( !bp_current_user_can( 'bp_moderate' ) && $comment->user_id != bp_loggedin_user_id() )
    301301        return false;
    302302
Note: See TracChangeset for help on using the changeset viewer.