summaryrefslogtreecommitdiff
path: root/openstack_auth/policy.py
diff options
context:
space:
mode:
Diffstat (limited to 'openstack_auth/policy.py')
-rw-r--r--openstack_auth/policy.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/openstack_auth/policy.py b/openstack_auth/policy.py
index 81fc7c2..1349869 100644
--- a/openstack_auth/policy.py
+++ b/openstack_auth/policy.py
@@ -181,7 +181,8 @@ def _check_credentials(enforcer_scope, action, target, credentials):
# enforce loads the rules
if action not in enforcer_scope.rules:
if not enforcer_scope.enforce('default', target, credentials):
- is_valid = False
+ if 'default' in enforcer_scope.rules:
+ is_valid = False
else:
is_valid = False
return is_valid