Temporarily disabled admin policy for accessing the REST API.

This commit is contained in:
dagnello 2014-10-29 17:09:06 -07:00
parent 09655aca1f
commit 17449b4e92
2 changed files with 4 additions and 2 deletions

View File

@ -77,7 +77,9 @@ class ContextHook(hooks.PecanHook):
is_public_api = state.request.environ.get('is_public_api', False)
is_admin = policy.check('admin', state.request.headers, creds)
#is_admin = policy.check('admin', state.request.headers, creds)
#TODO (dagnello): temp workaround to disably policy check for now
is_admin = True
state.request.context = context.RequestContext(
auth_token=auth_token,

View File

@ -192,7 +192,7 @@
# Method to use for authentication: noauth or keystone.
# (string value)
#auth_strategy=keystone
auth_strategy=noauth