Skip to:
Content

BuddyPress.org

Ticket #4429: 4429.patch

File 4429.patch, 720 bytes (added by rachelbaker, 12 years ago)

blocking activity comments by banned users

  • bp-activity/bp-activity-template.php

     
    22322232        if ( 'activity_comment' == bp_get_activity_action_name() )
    22332233                $can_comment = false;
    22342234
     2235        if ( bp_group_is_user_banned() )
     2236                $can_comment = false;
     2237
    22352238        return apply_filters( 'bp_activity_can_comment', $can_comment );
    22362239}
    22372240
     
    22492252function bp_activity_can_comment_reply( $comment ) {
    22502253        $can_comment = true;
    22512254
     2255        if ( bp_group_is_user_banned() )
     2256                $can_comment = false;
     2257
    22522258        return apply_filters( 'bp_activity_can_comment_reply', $can_comment, $comment );
    22532259}
    22542260