Skip to:
Content

BuddyPress.org

Ticket #1343: bp-core.php.patch

File bp-core.php.patch, 741 bytes (added by swinton, 16 years ago)

Patchfile for revision 2089 of bp-core.php

  • bp-core.php

     
    164164           their own profile and wants to delete a post on their wire, is_item_admin is used. This is a
    165165           generic variable so it can be used in other components. It can also be modified, so when viewing a group
    166166           'is_item_admin' would be 1 if they are a group admin, 0 if they are not. */
    167         $bp->is_item_admin = bp_is_home();
     167        $bp->is_item_admin = bp_is_home() && ! ( $bp->current_component == BP_ACTIVITY_SLUG && $bp->current_action == 'my-friends');
    168168
    169169        /* Used to determine if the logged in user is a moderator for the current content. */
    170170        $bp->is_item_mod = false;