Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't send mention notifications to disabled users
  • Loading branch information
vboctor committed Apr 28, 2016
1 parent 11d1dcc commit 934f63c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/email_api.php
Expand Up @@ -1345,6 +1345,11 @@ function email_user_mention( $p_bug_id, $p_mention_user_ids, $p_message, $p_remo

$t_users_processed[$t_mention_user_id] = true;

# Don't email mention notifications to disabled users.
if( !user_is_enabled( $t_mention_user_id ) ) {
continue;
}

lang_push( user_pref_get_language( $t_mention_user_id, $t_project_id ) );

$t_email = user_get_email( $t_mention_user_id );
Expand Down

0 comments on commit 934f63c

Please sign in to comment.