Changeset 5671
- Timestamp:
- 07/14/2017 01:52:30 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-user-notes.php
r5670 r5671 385 385 $post_id = get_the_ID(); 386 386 387 // Notes are only displayed for other users.388 if ( $user_id == get_current_user_id() ) {387 // Only super admins can see notes on the current user. 388 if ( ! is_super_admin() && $user_id == get_current_user_id() ) { 389 389 return; 390 390 } … … 418 418 $post_id = get_the_ID(); 419 419 420 // Notes are only displayed for other users.421 if ( $user_id == get_current_user_id() ) {420 // Only super admins can see notes on the current user. 421 if ( ! is_super_admin() && $user_id == get_current_user_id() ) { 422 422 return; 423 423 } … … 451 451 $user_id = bbp_get_displayed_user_id(); 452 452 453 // Notes are only displayed for other users.454 if ( $user_id == get_current_user_id() ) {453 // Only super admins can see notes on the current user. 454 if ( ! is_super_admin() && $user_id == get_current_user_id() ) { 455 455 return; 456 456 }
Note: See TracChangeset
for help on using the changeset viewer.