summaryrefslogtreecommitdiff
path: root/api.py
diff options
context:
space:
mode:
Diffstat (limited to 'api.py')
-rwxr-xr-xapi.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/api.py b/api.py
index 8af97fd..972b334 100755
--- a/api.py
+++ b/api.py
@@ -130,7 +130,9 @@ class AccessCheckerPlugin:
logging.debug('authz_needed: %r', authz_needed)
if authz_needed:
logging.debug('checking if access is allowed: %r', scopes)
- if self._checker.access_is_allowed(r.headers, scopes):
+ x = self._checker.access_is_allowed(r.headers, scopes)
+ logging.debug('x: %r', x)
+ if not x:
logging.error('Request denied %s %s', r.method, r.path)
return bottle.HTTPError(400)