mirror of
https://github.com/DarkflameUniverse/NexusDashboard.git
synced 2025-08-09 20:14:01 +00:00
actually fix it
This commit is contained in:
@@ -62,7 +62,7 @@ def edit_gm_level(id):
|
|||||||
def lock(id):
|
def lock(id):
|
||||||
account = Account.query.filter(Account.id == id).first()
|
account = Account.query.filter(Account.id == id).first()
|
||||||
account.locked = not account.locked
|
account.locked = not account.locked
|
||||||
account.active = not account.locked
|
account.active = account.locked
|
||||||
account.save()
|
account.save()
|
||||||
if account.locked:
|
if account.locked:
|
||||||
log_audit(f"Locked ({account.id}){account.username}")
|
log_audit(f"Locked ({account.id}){account.username}")
|
||||||
@@ -79,7 +79,7 @@ def lock(id):
|
|||||||
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.banned = not account.banned
|
||||||
account.active = not account.banned
|
account.active = account.banned
|
||||||
account.save()
|
account.save()
|
||||||
if account.banned:
|
if account.banned:
|
||||||
log_audit(f"Banned ({account.id}){account.username}")
|
log_audit(f"Banned ({account.id}){account.username}")
|
||||||
|
Reference in New Issue
Block a user