Changeset 2391 for trunk/bp-groups/bp-groups-classes.php
- Timestamp:
- 01/21/2010 11:53:03 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-classes.php
r2390 r2391 320 320 $pag_sql = $wpdb->prepare( " LIMIT %d, %d", intval( ( $page - 1 ) * $limit), intval( $limit ) ); 321 321 322 if ( !is_ site_admin() )322 if ( !is_user_logged_in() || ( !is_site_admin() && ( $user_id != $bp->loggedin_user->id ) ) ) 323 323 $hidden_sql = "AND g.status != 'hidden'"; 324 324 … … 345 345 $pag_sql = $wpdb->prepare( " LIMIT %d, %d", intval( ( $page - 1 ) * $limit), intval( $limit ) ); 346 346 347 if ( !is_ site_admin() && ( $user_id != $bp->loggedin_user->id) )347 if ( !is_user_logged_in() || ( !is_site_admin() && ( $user_id != $bp->loggedin_user->id ) ) ) 348 348 $hidden_sql = "AND g.status != 'hidden'"; 349 349 … … 371 371 } 372 372 373 if ( !is_ site_admin() && ( $user_id != $bp->loggedin_user->id) )373 if ( !is_user_logged_in() || ( !is_site_admin() && ( $user_id != $bp->loggedin_user->id ) ) ) 374 374 $hidden_sql = "AND g.status != 'hidden'"; 375 375 … … 396 396 $pag_sql = $wpdb->prepare( " LIMIT %d, %d", intval( ( $page - 1 ) * $limit), intval( $limit ) ); 397 397 398 if ( !is_ site_admin() && ( $user_id != $bp->loggedin_user->id) )398 if ( !is_user_logged_in() || ( !is_site_admin() && ( $user_id != $bp->loggedin_user->id ) ) ) 399 399 $hidden_sql = " AND g.status != 'hidden'"; 400 400 … … 425 425 } 426 426 427 if ( !is_ site_admin() && ( $user_id != $bp->loggedin_user->id) )427 if ( !is_user_logged_in() || ( !is_site_admin() && ( $user_id != $bp->loggedin_user->id ) ) ) 428 428 $hidden_sql = " AND g.status != 'hidden'"; 429 429 … … 454 454 } 455 455 456 if ( !is_ site_admin() && ( $user_id != $bp->loggedin_user->id) )456 if ( !is_user_logged_in() || ( !is_site_admin() && ( $user_id != $bp->loggedin_user->id ) ) ) 457 457 $hidden_sql = " AND g.status != 'hidden'"; 458 458 … … 544 544 $pag_sql = $wpdb->prepare( " LIMIT %d, %d", intval( ( $page - 1 ) * $limit), intval( $limit ) ); 545 545 546 if ( !is_ site_admin() )546 if ( !is_user_logged_in() || ( !is_site_admin() && ( $user_id != $bp->loggedin_user->id ) ) ) 547 547 $hidden_sql = "AND g.status != 'hidden'"; 548 548
Note: See TracChangeset
for help on using the changeset viewer.