-
Elia replied to the topic How to block access to specific groups based on membership in the forum How-to & Troubleshooting 1 year, 6 months ago
@henrywright @mom4321 Could you please help me to use this code?
if ( bp_is_groups_component() && 'group-name-here' === bp_current_item() ) {
// Restrict access
}I would like to restrict specific group for specific membership plan
-
Elia replied to the topic Restrict access to the group members list in the forum How-to & Troubleshooting 4 years, 2 months ago
Sorry for the question marks, I tried to user emoji there 😉
-
Elia replied to the topic Restrict access to the group members list in the forum How-to & Troubleshooting 4 years, 2 months ago
Wow, clickallco, thanks for the quick help!
This code removes the “members” tab and access to the /groups/GROUPNAME/members/ page.
But in my theme (buddyboss) when you click on the group it redirects to this page /groups/GROUPNAME/members/all-members/
And that page is still available.
Can I do anything about it?
-
Elia started the topic Restrict access to the group members list in the forum How-to & Troubleshooting 4 years, 2 months ago
Hi there,
Could you please help to restrict access to the group members list?
So only admin would be able to see these pages. Because we don’t want our users to know how many users are within each group on the website.
For that we need to restrict all similar pages:
/groups/GROUPNAME/members/
/groups/GROUPNAME/members/all-members/
@prettyboyelias
Active 9 months, 3 weeks ago