Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/19/2010 09:05:42 PM (14 years ago)
Author:
djpaul
Message:

Allow super admins to leave groups they've joined as long as they are not the group's last admin. Fixes #2961

File:
1 edited

Legend:

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

    r3542 r3543  
    11781178
    11791179            // Stop sole admins from abandoning their group
    1180             if ( $bp->is_item_admin && count( groups_get_group_admins( $group->id ) ) < 2 )
     1180            $group_admins = groups_get_group_admins( $group->id );
     1181            if ( 1 == count( $group_admins ) && $group_admins[0]->user_id == $bp->loggedin_user->id )
    11811182                return false;
    11821183
Note: See TracChangeset for help on using the changeset viewer.