Skip to:
Content

BuddyPress.org

Changeset 840 for trunk/bp-groups.php


Ignore:
Timestamp:
01/13/2009 12:13:56 AM (16 years ago)
Author:
apeatling
Message:

FIxes #308

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups.php

    r832 r840  
    691691
    692692function groups_screen_group_admin_requests() {
    693     global $bp;
     693    global $bp, $group_obj;
    694694   
    695695    if ( $bp['current_component'] == $bp['groups']['slug'] && $bp['action_variables'][0] == 'membership-requests' ) {
    696696       
    697         if ( !$bp['is_item_admin'] )
     697        if ( !$bp['is_item_admin'] || $group_obj->status == 'public' )
    698698            return false;
    699            
     699       
    700700        // Remove any screen notifications
    701701        bp_core_delete_notifications_for_user_by_type( $bp['loggedin_userid'], 'groups', 'new_membership_request' );
Note: See TracChangeset for help on using the changeset viewer.