Skip to:
Content

Changeset 2411


Ignore:
Timestamp:
01/23/2010 01:57:58 PM (9 years ago)
Author:
apeatling
Message:

Fixes #1667

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups.php

    r2409 r2411  
    18881888
    18891889    /* Be sure the user is a member of the group before posting. */
    1890     if ( !groups_is_user_member( $user_id, $group_id ) )
     1890    if ( !is_site_admin() && !groups_is_user_member( $user_id, $group_id ) )
    18911891        return false;
    18921892
  • trunk/bp-groups/bp-groups-classes.php

    r2391 r2411  
    897897        global $wpdb, $bp;
    898898
    899         if ( $user_id != $bp->loggedin_user->id ) {
    900             $user = get_userdata( $user_id );
    901             $user_login = $user->user_login;
    902         }
    903 
    904         if ( is_site_admin( $user_login ) )
    905             return true;
    906 
    907899        if ( !$user_id )
    908900            return false;
Note: See TracChangeset for help on using the changeset viewer.