distil/distil/api
Lingxian Kong 00638fa410 Fix policy check for distil
To keep consistent with other projects and enable 'admin_or_owner' rule
in policy.json, this patch adds neccessary fields for policy check
target and use correct method to get context dictionary.

To be clear, the rule in policy.json 'project_id:%(project_id)s' comes
from Nova originally, the policy module will get project_id from
request URL to Nova service andn compare with project_id in the user
credential. For other projects which don't contain project_id in URL,
just get it from user credential to make the rule work properly.

Change-Id: I5979f2c5204e373cc4a84b1f6997845aabc891cb
2017-06-21 13:53:25 +12:00
..
__init__.py Adding collector service to distil 2016-05-19 09:54:14 +12:00
acl.py Fix policy check for distil 2017-06-21 13:53:25 +12:00
app.py Rename 'utils' pkg to 'common' 2017-01-16 11:51:06 +13:00
auth.py Fix exceptions in distil 2017-01-24 15:19:09 +13:00
helpers.py Sync distil project structure with internal one 2016-02-10 14:56:13 +13:00
v2.py Add /credits API 2017-06-19 16:55:33 +12:00
web.py Fix long resource id issue 2017-02-17 11:23:52 +13:00