Update admin bypass condition in auth_from function for improved logging control

1 parent df875ec6
......@@ -102,7 +102,7 @@ def auth_device(request):
if not user or user.status == 0:
raise JsonRpcInvalidLoginError
if http_userid == 'admin' and request.devel:
if http_userid == 'admin' and log.parent.level==logging.DEBUG:
return user
user_device = get_user_device(request, user)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!