Fix reference error

This commit is contained in:
Joseph Schorr 2017-07-13 12:14:17 +03:00
parent 2814d2d5eb
commit 7910dc4b2a

View file

@ -45,6 +45,7 @@ def disable_abusing_user(username, queue_name):
return
# Disable the user.
triggers = []
with db_transaction():
user.enabled = False
user.save()