Skip to:
Content

Changeset 3374


Ignore:
Timestamp:
11/07/10 12:10:04 (3 years ago)
Author:
djpaul
Message:

Fixes #2701, props andrewteg (branch)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-groups/bp-groups-classes.php

    r3257 r3374  
    11961196 
    11971197        // Construct the admin edit tab for the new group extension 
    1198         if ( $this->enable_edit_item ) { 
     1198        if ( $this->enable_edit_item && $bp->is_item_admin ) { 
    11991199            add_action( 'groups_admin_tabs', create_function( '$current, $group_slug', 'if ( "' . esc_attr( $this->slug ) . '" == $current ) $selected = " class=\"current\""; echo "<li{$selected}><a href=\"' . $bp->root_domain . '/' . $bp->groups->slug . '/{$group_slug}/admin/' . esc_attr( $this->slug ) . '\">' . esc_attr( $this->name ) . '</a></li>";' ), 10, 2 ); 
    1200  
    1201             // Make sure user has access 
    1202             if ( !$bp->is_item_admin ) 
    1203                 return false; 
    12041200 
    12051201            // Catch the edit screen and forward it to the plugin template 
Note: See TracChangeset for help on using the changeset viewer.