Merge "Fix the issue that it cannot do a policy check correctly"

This commit is contained in:
Jenkins 2016-07-12 20:10:00 +00:00 committed by Gerrit Code Review
commit 9a7c7c6919
1 changed files with 1 additions and 1 deletions

View File

@ -411,7 +411,7 @@ def check(actions, request, target=None):
# Note(Itxaka): This is to prevent circular dependencies and apps not ready # Note(Itxaka): This is to prevent circular dependencies and apps not ready
# If you do django imports in your settings, you are gonna have a bad time # If you do django imports in your settings, you are gonna have a bad time
from openstack_auth import policy from openstack_auth import policy
return policy.check(actions, request, target=None) return policy.check(actions, request, target)
if POLICY_CHECK_FUNCTION is None: if POLICY_CHECK_FUNCTION is None:
POLICY_CHECK_FUNCTION = check POLICY_CHECK_FUNCTION = check