I have modify this lines of class-bp-restrict.php, it seems to work, what do you think about it ?
$settings[] = array(
'title' => __( 'Restrict viewing other profiles', 'bp-restrict' ),
'front' => __( 'View members profile', 'bp-restrict' ),
'name' => 'view_profiles',
'condition' => 'bp_is_user()' .
'&& !preg_match("/\/' . $members_slug . '\/" . bp_get_loggedin_user_username() . "/" , %current_url% )',
);
-
This reply was modified 7 years, 8 months ago by chibanou.
In fact I have not the same issue but the opposite : Every members are found whatever the search…