Disable SeAT accounts instead of deleting. (#915)

See eveseat/web@1abb402
This commit is contained in:
Adarnof
2017-11-03 19:20:31 -04:00
committed by GitHub
parent 16987fcaf0
commit 6837f94e59
3 changed files with 18 additions and 6 deletions

View File

@@ -28,7 +28,7 @@ class SeatTasks:
@classmethod
def delete_user(cls, user, notify_user=False):
if cls.has_account(user) and SeatManager.delete_user(user.seat.username):
if cls.has_account(user) and SeatManager.disable_user(user.seat.username):
user.seat.delete()
logger.info("Successfully deactivated SeAT for user %s" % user)
if notify_user: