Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
feudal
feudalBackend
Commits
25265cc6
Commit
25265cc6
authored
Aug 21, 2018
by
Lukas Burgey
Browse files
Fix a setting
parent
324e8a9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
feudal/backend/auth/v1/views/clients.py
View file @
25265cc6
...
...
@@ -177,27 +177,25 @@ def topic_auth_decision(request, decision):
name
=
request
.
POST
.
get
(
'name'
,
''
)
routing_key
=
request
.
POST
.
get
(
'routing_key'
,
''
)
if
not
AUTH_DEBUGGING
:
return
decision
if
decision
==
ALLOW
:
LOGGER
.
debug
(
"[topic] ALLOW %s %s %s '%s' for %s"
,
permission
,
resource
,
name
,
routing_key
,
user
,
)
else
:
LOGGER
.
error
(
"[topic] DENY %s %s %s '%s' for %s"
,
permission
,
resource
,
name
,
routing_key
,
user
,
)
if
settings
.
DEBUG_AUTH
:
if
decision
==
ALLOW
:
LOGGER
.
debug
(
"[topic] ALLOW %s %s %s '%s' for %s"
,
permission
,
resource
,
name
,
routing_key
,
user
,
)
else
:
LOGGER
.
error
(
"[topic] DENY %s %s %s '%s' for %s"
,
permission
,
resource
,
name
,
routing_key
,
user
,
)
return
decision
def
topic_endpoint_webpageclient
(
request
,
webpage_client_userid
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
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 comment