URI access restrictions
Posted: February 1st, 2011, 3:12 am
HI all, am struggling a bit. Have a community where registered users (level 0) can access specific content. They should be able to update their profile but should not be able to view members directory. Members directoryaccessible from level 1 and up.
Have added:
URI restriction level 1
/groups
/activity
/forums
/friends
This works fine.
Adding for level 1 also works:
/members/%%current_user_login%%/friends/
/members/%%current_user_login%%/activity/friends/
/members/%%current_user_login%%/activity/groups/
/members/%%current_user_login%%/groups/
/members/%%current_user_login%%/messages/
/community/members (access to member directory from webpage, also works fine)
HOWEVER:
If somebody would guess the buddypress members directory page at www.mysite.com/members this is open to all!
adding /members to level 0 prevents open access
adding /members to level 1 makes the profile page not accessible for level 0 (has members in the URI).
What am I doing wrong, how2solve??
Have added:
URI restriction level 1
/groups
/activity
/forums
/friends
This works fine.
Adding for level 1 also works:
/members/%%current_user_login%%/friends/
/members/%%current_user_login%%/activity/friends/
/members/%%current_user_login%%/activity/groups/
/members/%%current_user_login%%/groups/
/members/%%current_user_login%%/messages/
/community/members (access to member directory from webpage, also works fine)
HOWEVER:
If somebody would guess the buddypress members directory page at www.mysite.com/members this is open to all!
adding /members to level 0 prevents open access
adding /members to level 1 makes the profile page not accessible for level 0 (has members in the URI).
What am I doing wrong, how2solve??