mirror of
https://github.com/DarkflameUniverse/NexusDashboard.git
synced 2024-11-21 21:17:23 +00:00
fix acount banning
This commit is contained in:
parent
33d24745e1
commit
6f4b2ef574
@ -80,9 +80,6 @@ def lock(id):
|
||||
@gm_level(3)
|
||||
def ban(id):
|
||||
account = Account.query.filter(Account.id == id).first()
|
||||
account.banned = not account.banned
|
||||
account.active = account.banned
|
||||
|
||||
if not account.banned:
|
||||
account.banned = True
|
||||
account.active = False
|
||||
|
Loading…
Reference in New Issue
Block a user