Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
aa.gusti
/
opensipkd-base
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 86845312
authored
Aug 12, 2025
by
aa.gustiana@gmail.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Update admin bypass condition in auth_from function for improved logging control
1 parent
df875ec6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
opensipkd/base/tools/api.py
opensipkd/base/tools/api.py
View file @
8684531
...
@@ -102,7 +102,7 @@ def auth_device(request):
...
@@ -102,7 +102,7 @@ def auth_device(request):
if
not
user
or
user
.
status
==
0
:
if
not
user
or
user
.
status
==
0
:
raise
JsonRpcInvalidLoginError
raise
JsonRpcInvalidLoginError
if
http_userid
==
'admin'
and
request
.
devel
:
if
http_userid
==
'admin'
and
log
.
parent
.
level
==
logging
.
DEBUG
:
return
user
return
user
user_device
=
get_user_device
(
request
,
user
)
user_device
=
get_user_device
(
request
,
user
)
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment