Browse Source

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

Jenkins 2 years ago
parent
commit
9a7c7c6919
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      openstack_dashboard/settings.py

+ 1
- 1
openstack_dashboard/settings.py View File

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

Loading…
Cancel
Save