Ticket #4984: 4984.diff
File 4984.diff, 848 bytes (added by , 11 years ago) |
---|
-
bp-xprofile/bp-xprofile-functions.php
694 694 695 695 // current user is logged-in but not friends, so exclude friends-only 696 696 } else { 697 $hidden_levels = array( 'friends' );698 697 699 698 if ( ! bp_current_user_can( 'bp_moderate' ) ) 700 $hidden_levels [] = 'adminsonly';699 $hidden_levels = array( 'friends', 'adminsonly' ); 701 700 702 701 $hidden_fields = bp_xprofile_get_fields_by_visibility_levels( $displayed_user_id, $hidden_levels ); 703 702 } … … 742 741 } 743 742 744 743 $field_ids = array(); 744 745 745 foreach( (array) $user_visibility_levels as $field_id => $field_visibility ) { 746 746 if ( in_array( $field_visibility, $levels ) ) { 747 747 $field_ids[] = $field_id;