Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/12/2011 12:04:50 PM (13 years ago)
Author:
djpaul
Message:

Set is_item_admin/is_item_mod in core component, not members. Fixes #3262

File:
1 edited

Legend:

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

    r4378 r4488  
    161161        $bp->core->table_name_notifications = $bp->table_prefix . 'bp_notifications';
    162162
     163        /**
     164         * Used to determine if user has admin rights on current content. If the
     165         * logged in user is viewing their own profile and wants to delete
     166         * something, is_item_admin is used. This is a generic variable so it
     167         * can be used by other components. It can also be modified, so when
     168         * viewing a group 'is_item_admin' would be 'true' if they are a group
     169         * admin, and 'false' if they are not.
     170         */
     171        bp_update_is_item_admin( bp_user_has_access(), 'core' );
     172
     173        // Is the logged in user is a mod for the current item?
     174        bp_update_is_item_mod( false,                  'core' );
     175
    163176        do_action( 'bp_core_setup_globals' );
    164177    }
Note: See TracChangeset for help on using the changeset viewer.