Commit 25265cc6 authored by Lukas Burgey's avatar Lukas Burgey

Fix a setting

parent 324e8a9c
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment