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