Skip to:
Content

BuddyPress.org

Changeset 6777


Ignore:
Timestamp:
02/08/2013 07:45:50 AM (9 years ago)
Author:
djpaul
Message:

Update group admin logic to not allow moderators to save group settings via POST. Fixes #4737, props mercime

Location:
trunk/bp-groups
Files:
2 edited

Legend:

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

    r6599 r6777  
    514514        return false;
    515515
    516     if ( bp_is_item_admin() || bp_is_item_mod() ) {
     516    if ( bp_is_item_admin() ) {
    517517
    518518        $bp = buddypress();
  • trunk/bp-groups/bp-groups-template.php

    r6614 r6777  
    14351435    $current_tab = bp_get_group_current_admin_tab();
    14361436
    1437     if ( bp_is_item_admin() || bp_is_item_mod() ) : ?>
     1437    if ( bp_is_item_admin() ) : ?>
    14381438
    14391439        <li<?php if ( 'edit-details' == $current_tab || empty( $current_tab ) ) : ?> class="current"<?php endif; ?>><a href="<?php echo trailingslashit( bp_get_group_permalink( $group ) . 'admin/edit-details' ) ?>"><?php _e( 'Details', 'buddypress' ); ?></a></li>
Note: See TracChangeset for help on using the changeset viewer.