Don't consider deactivated users for @-mentions.

(imported from commit 5e85f8c897e2ea9a3c0c37c3199666b490d6e07a)
This commit is contained in:
Tim Abbott 2013-07-17 14:07:40 -04:00
parent 5439687b70
commit eecf96b520
1 changed files with 1 additions and 0 deletions

View File

@ -16,6 +16,7 @@ def find_user_for_mention(mention, realm):
try:
user = zephyr.models.UserProfile.objects.filter(
Q(full_name__iexact=mention) | Q(short_name__iexact=mention),
is_active=True,
realm=realm
)[0]
except IndexError: