Group Access Control Exception for Group Members page
-
My site contains only ‘private’ groups, but non-members of the site can see Group ‘home’ pages and ‘members’ pages.
Since the 1.6 update, the Group access control has changed in bp-groups-loader.php. On line 264, an exception is made:
`
// Skip the no_access check on home and membership request pages
} elseif ( !bp_is_current_action( ‘home’ ) && !bp_is_current_action( ‘request-membership’ ) ) {
`
Now, if I add && !bp_is_current_action( ‘members’ ) to the if statement above, I would expect the no access check to be skipped on the Group Members page. This is not the case, as a redirect still occurs, but it is not coming from bp-groups-loader.php.Without my hack, the redirect occurs on line 276:
`bp_core_no_access();`
With my hack, the redirect still occurs, but not on line 276 or anywhere in bp-groups-loader.php.I’m wondering if this is a bug in the new Group Access Control logic, or is there just a redirect elsewhere that prevents public access to the Group Members loop?
- The topic ‘Group Access Control Exception for Group Members page’ is closed to new replies.