resitrict profile page buddypress and membership plugin

is it possible to restrict a url in buddypress so that only paid members can see that page.

an example would be
mysite.com/username/profile/edit/group/2/ the username is variable depending on the user