Skip to:
Content

BuddyPress.org

Ticket #3687: 3687.01.patch

File 3687.01.patch, 748 bytes (added by r-a-y, 13 years ago)
  • bp-groups/bp-groups-loader.php

    class BP_Groups_Component extends BP_Component { 
    166166                // Group access control
    167167                if ( bp_is_groups_component() && !empty( $this->current_group ) ) {
    168168
    169                         if ( !empty( $bp->current_action ) && !$this->current_group->user_has_access ) {
     169                        if ( !empty( $bp->current_action ) && !$this->current_group->user_has_access && $bp->current_action != 'request-membership' && $bp->current_action != 'home' ) {
    170170                                if ( is_user_logged_in() ) {
    171171                                        // Off-limits to this user. Throw an error and redirect to the group's home page
    172172                                        bp_core_no_access( array(