]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Use policy based rule to define context.is_admin
authorClay Gerrard <clay.gerrard@gmail.com>
Mon, 1 Oct 2012 16:33:25 +0000 (11:33 -0500)
committerClay Gerrard <clay.gerrard@gmail.com>
Mon, 1 Oct 2012 18:38:29 +0000 (13:38 -0500)
commitbdee787cf79c359cc4583483e010ddf3d356cb18
treede87ef59ee1b985e6be9f6eed024cef00838509c
parent4cfb90a9b82c52c476187204f8b0a83d9ba7c186
Use policy based rule to define context.is_admin

When creating a context set is_admin based on policy instead of
hard coded requirement for a role named 'admin'.

Fixes: bug# 1053181
Change-Id: I9c05b8ecde887467557c4f01e074145b6a6372aa
cinder/context.py
cinder/policy.py
cinder/tests/policy.json
cinder/tests/test_policy.py
etc/cinder/policy.json