Buddypress make profile private

Would you know, in Buddypress is there a way to make the profiles of people you are not friends with private? So far I can go onto any members page and see everything. Ideally I want it to be private as default unless I'm friends with that person. I am told it is customer code I will need help with.