Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/17/2010 10:09:59 AM (16 years ago)
Author:
johnjamesjacoby
Message:

Switch is_item_admin check to bp_user_has_access.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-core.php

    r2982 r3008  
    166166       generic variable so it can be used by other components. It can also be modified, so when viewing a group
    167167       'is_item_admin' would be 1 if they are a group admin, 0 if they are not. */
    168     $bp->is_item_admin = bp_is_my_profile();
     168    $bp->is_item_admin = bp_user_has_access();
    169169
    170170    /* Used to determine if the logged in user is a moderator for the current content. */
     
    683683     * looking at their own profile, don't create the nav item.
    684684     */
    685     if ( !$show_for_displayed_user && !bp_is_my_profile() )
     685    if ( !$show_for_displayed_user && !bp_user_has_access() )
    686686        return false;
    687687
Note: See TracChangeset for help on using the changeset viewer.