Skip to:
Content

BuddyPress.org

Changeset 8159


Ignore:
Timestamp:
03/25/2014 08:12:51 PM (10 years ago)
Author:
boonebgorges
Message:

Allow site admins to visit the Request Membership page of a private group

Fixes #5357

Props imath

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-loader.php

    r8090 r8159  
    445445            // show a "Request Membership" nav item.
    446446            if ( is_user_logged_in() &&
    447                  ! bp_current_user_can( 'bp_moderate' ) &&
    448447                 ! $this->current_group->is_user_member &&
    449448                 ! groups_check_for_membership_request( bp_loggedin_user_id(), $this->current_group->id ) &&
  • trunk/bp-templates/bp-legacy/buddypress/groups/single/home.php

    r7949 r8159  
    7070                elseif ( bp_is_group_forum()      ) : bp_get_template_part( 'groups/single/forum'        );
    7171
     72                // Membership request
     73                elseif ( bp_is_group_membership_request() ) : bp_get_template_part( 'groups/single/request-membership' );
     74
    7275                // Anything else (plugins mostly)
    7376                else                                : bp_get_template_part( 'groups/single/plugins'      );
Note: See TracChangeset for help on using the changeset viewer.