Correct the policy check call in keystone
Change-Id: Ie72ea40b998352fbc9bb268d9e87b795288415e9 Closes-Bug: #1416583
This commit is contained in:
@@ -144,7 +144,7 @@ def keystoneclient(request, admin=False):
|
||||
"""
|
||||
user = request.user
|
||||
if admin:
|
||||
if not policy.check(("identity", "admin_required"), request):
|
||||
if not policy.check((("identity", "admin_required"),), request):
|
||||
raise exceptions.NotAuthorized
|
||||
endpoint_type = 'adminURL'
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user