Skip to:
Content

BuddyPress.org

Ticket #1298: 1298-bp-groups.php.patch

File 1298-bp-groups.php.patch, 1.5 KB (added by MrMaz, 15 years ago)
  • bp-groups.php

    # This patch file was generated by NetBeans IDE
    # Following Index: paths are relative to: \\UBU\www\sandbox\public_html\wp-content\plugins\buddypress
    # This patch can be applied using context Tools: Patch action on respective folder.
    # It uses platform neutral UTF-8 encoding and \n newlines.
    # Above lines and this line are ignored by the patching process.
     
    818818        $wire_action = $bp->action_variables[0];
    819819
    820820        if ( $bp->is_single_item ) {
    821                 if ( 'post' == $wire_action && groups_is_user_member( $bp->loggedin_user->id, $bp->groups->current_group->id ) ) {
     821                if ( 'post' == $wire_action && ( ( is_site_admin() ) || ( groups_is_user_member( $bp->loggedin_user->id, $bp->groups->current_group->id ) ) ) ) {
    822822                        /* Check the nonce first. */
    823823                        if ( !check_admin_referer( 'bp_wire_post' ) )
    824824                                return false;
     
    833833                        else
    834834                                bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) . '/' . $bp->wire->slug );
    835835
    836                 } else if ( 'delete' == $wire_action && groups_is_user_member( $bp->loggedin_user->id, $bp->groups->current_group->id ) ) {
    837  No newline at end of file
     836                } else if ( 'delete' == $wire_action && ( ( is_site_admin() ) || ( groups_is_user_member( $bp->loggedin_user->id, $bp->groups->current_group->id ) ) ) ) {
     837 No newline at end of file
    838838                        $wire_message_id = $bp->action_variables[1];
    839839