Ticket #2348: demo1.patch
File demo1.patch, 1.2 KB (added by , 14 years ago) |
---|
-
bp-core/admin/bp-core-schema.php
147 147 ) {$charset_collate};"; 148 148 149 149 dbDelta($sql); 150 151 $role =& get_role( 'administrator' ); 152 if ( !empty( $role ) ) 153 $role->add_cap( 'bp_manage_groups' ); 150 154 } 151 155 152 156 function bp_core_install_private_messaging() { -
bp-groups.php
50 50 $bp->groups->current_group = new BP_Groups_Group( $group_id ); 51 51 52 52 /* Using "item" not "group" for generic support in other components. */ 53 if ( is_site_admin() )53 if ( is_site_admin() || current_user_can( 'bp_manage_groups' ) ) 54 54 $bp->is_item_admin = 1; 55 55 else 56 $bp->is_item_admin = groups_is_user_admin( $bp->loggedin_user->id, $bp->groups->current_group->id );56 $bp->is_item_admin = groups_is_user_admin( $bp->loggedin_user->id, $bp->groups->current_group->id; 57 57 58 58 /* If the user is not an admin, check if they are a moderator */ 59 59 if ( !$bp->is_item_admin )