Changeset 3192 for branches/1.2/bp-messages.php
- Timestamp:
- 08/15/2010 04:43:07 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/bp-messages.php
r3186 r3192 90 90 global $bp; 91 91 92 if ( !is_s ite_admin() )92 if ( !is_super_admin() ) 93 93 return false; 94 94 … … 117 117 bp_core_new_subnav_item( array( 'name' => __( 'Compose', 'buddypress' ), 'slug' => 'compose', 'parent_url' => $messages_link, 'parent_slug' => $bp->messages->slug, 'screen_function' => 'messages_screen_compose', 'position' => 30, 'user_has_access' => bp_is_my_profile() ) ); 118 118 119 if ( is_s ite_admin() )120 bp_core_new_subnav_item( array( 'name' => __( 'Notices', 'buddypress' ), 'slug' => 'notices', 'parent_url' => $messages_link, 'parent_slug' => $bp->messages->slug, 'screen_function' => 'messages_screen_notices', 'position' => 90, 'user_has_access' => is_s ite_admin() ) );119 if ( is_super_admin() ) 120 bp_core_new_subnav_item( array( 'name' => __( 'Notices', 'buddypress' ), 'slug' => 'notices', 'parent_url' => $messages_link, 'parent_slug' => $bp->messages->slug, 'screen_function' => 'messages_screen_notices', 'position' => 90, 'user_has_access' => is_super_admin() ) ); 121 121 122 122 if ( $bp->current_component == $bp->messages->slug ) { … … 201 201 global $bp, $notice_id; 202 202 203 if ( !is_s ite_admin() )203 if ( !is_super_admin() ) 204 204 return false; 205 205 … … 286 286 $thread_id = $bp->action_variables[0]; 287 287 288 if ( !$thread_id || !messages_is_valid_thread( $thread_id ) || ( !messages_check_thread_access($thread_id) && !is_s ite_admin() ) )288 if ( !$thread_id || !messages_is_valid_thread( $thread_id ) || ( !messages_check_thread_access($thread_id) && !is_super_admin() ) ) 289 289 bp_core_redirect( $bp->displayed_user->domain . $bp->current_component ); 290 290 … … 488 488 489 489 function messages_send_notice( $subject, $message ) { 490 if ( !is_s ite_admin() || empty( $subject ) || empty( $message ) ) {490 if ( !is_super_admin() || empty( $subject ) || empty( $message ) ) { 491 491 return false; 492 492 } else {
Note: See TracChangeset
for help on using the changeset viewer.