fix(legacy): keep static shell available during migration
This commit is contained in:
@@ -4779,10 +4779,11 @@ class RequestHandler(BaseHTTPRequestHandler):
|
||||
if parsed.path == "/api/auth/me":
|
||||
self.auth_me()
|
||||
return
|
||||
if parsed.path.startswith("/api/") and not self.require_auth():
|
||||
return
|
||||
if not self.require_access("GET", parsed.path):
|
||||
return
|
||||
if parsed.path.startswith("/api/"):
|
||||
if not self.require_auth():
|
||||
return
|
||||
if not self.require_access("GET", parsed.path):
|
||||
return
|
||||
if parsed.path == "/api/admin/settings":
|
||||
self.send_json(
|
||||
{"ok": True, **SERVICE.system_status(), "users": SERVICE.admin_users()}
|
||||
|
||||
Reference in New Issue
Block a user