Pre-fixing JSON update bug.

This commit is contained in:
Landon Wark
2024-04-15 08:12:36 -05:00
parent f994f81d11
commit 7c46578d21
9 changed files with 90 additions and 40 deletions

View File

@@ -538,7 +538,11 @@ def rreplace(s, old, new):
ctx = get_config(None)
def is_power_user() -> bool:
return getpass.getuser() in ctx.power_users
try:
check = getpass.getuser() in ctx.power_users
except:
check = False
return check
def check_authorization(func):
"""