Changeset 4488
- Timestamp:
- 06/12/2011 12:04:50 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-loader.php
r4378 r4488 161 161 $bp->core->table_name_notifications = $bp->table_prefix . 'bp_notifications'; 162 162 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 163 176 do_action( 'bp_core_setup_globals' ); 164 177 } -
trunk/bp-core/bp-core-template.php
r4466 r4488 696 696 } 697 697 698 function bp_user_has_access() { 699 $has_access = ( is_super_admin() || bp_is_my_profile() ) ? true : false; 700 701 return apply_filters( 'bp_user_has_access', $has_access ); 702 } 703 698 704 /** is_() functions to determine the current page *****************************/ 699 705 -
trunk/bp-members/bp-members-loader.php
r4440 r4488 86 86 // The core userdata of the user who is currently logged in. 87 87 $bp->loggedin_user->userdata = bp_core_get_core_userdata( $bp->loggedin_user->id ); 88 89 /**90 * Used to determine if user has admin rights on current content. If the91 * logged in user is viewing their own profile and wants to delete92 * something, is_item_admin is used. This is a generic variable so it93 * can be used by other components. It can also be modified, so when94 * viewing a group 'is_item_admin' would be 'true' if they are a group95 * admin, and 'false' if they are not.96 */97 bp_update_is_item_admin( bp_user_has_access(), 'members' );98 99 // Is the logged in user is a mod for the current item?100 bp_update_is_item_mod ( false, 'members' );101 88 102 89 /** Displayed user ****************************************************/ -
trunk/bp-members/bp-members-template.php
r4400 r4488 755 755 return apply_filters( 'bp_get_last_activity', $last_activity ); 756 756 } 757 758 function bp_user_has_access() {759 $has_access = ( is_super_admin() || bp_is_my_profile() ) ? true : false;760 761 return apply_filters( 'bp_user_has_access', $has_access );762 }763 757 764 758 function bp_user_firstname() {
Note: See TracChangeset
for help on using the changeset viewer.