Private Group Permalink Redirects to Home Page
Hello, fellow BuddyPress’rs!
On the groups page, I have a list of all the groups, both public and private. If I attempt to gain access to a private group when I am not logged in, I am redirected to the home page. Is there any way to redirect to an error page?
The “bp_group_permalink()” function located in “bp-groups-templatetags.php” does not seem to be the correct place to edit this, as I need a conditional statement to say (paraphrase), “If user is not logged in, then redirect to an error page”.
The “groups-loop.php” file seems like the most promising place to edit code, but I don’t see a way to say (in php), “if user is logged in…”.
Can someone point me in the right direction here?
- The topic ‘Private Group Permalink Redirects to Home Page’ is closed to new replies.