Merge "Fix incorrect authorization rule in quota contrib api."

This commit is contained in:
Jenkins 2013-05-31 08:32:42 +00:00 committed by Gerrit Code Review
commit 04e175aba4
2 changed files with 4 additions and 5 deletions

View File

@ -29,8 +29,8 @@ from cinder import quota
QUOTAS = quota.QUOTAS
authorize_update = extensions.extension_authorizer('compute', 'quotas:update')
authorize_show = extensions.extension_authorizer('compute', 'quotas:show')
authorize_update = extensions.extension_authorizer('volume', 'quotas:update')
authorize_show = extensions.extension_authorizer('volume', 'quotas:show')
class QuotaTemplate(xmlutil.TemplateBuilder):
@ -111,7 +111,7 @@ class Quotas(extensions.ExtensionDescriptor):
name = "Quotas"
alias = "os-quota-sets"
namespace = "http://docs.openstack.org/compute/ext/quotas-sets/api/v1.1"
namespace = "http://docs.openstack.org/volume/ext/quotas-sets/api/v1.1"
updated = "2011-08-08T00:00:00+00:00"
def get_resources(self):

View File

@ -17,8 +17,7 @@
"volume_extension:volume_image_metadata": [],
"volume_extension:quotas:show": [],
"volume_extension:quotas:update_for_project": [["rule:admin_api"]],
"volume_extension:quotas:update_for_user": [["rule:admin_or_projectadmin"]],
"volume_extension:quotas:update": [["rule:admin_api"]],
"volume_extension:quota_classes": [],
"volume_extension:volume_admin_actions:reset_status": [["rule:admin_api"]],