summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Dahn <jake@markupisart.com>2011-08-16 09:15:14 -0700
committerJake Dahn <jake@markupisart.com>2011-08-16 09:15:14 -0700
commit029261908ac5acd9950a4b027b7daec17c92854d (patch)
treef0714a875becf90b02eb6173d89631239bbf1634
parentbf269b3d799a431ad3fc68cdb039b826685c8760 (diff)
making get project quotas require context which has access to the project/tenant)
-rw-r--r--nova/db/sqlalchemy/api.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/nova/db/sqlalchemy/api.py b/nova/db/sqlalchemy/api.py
index 57a4370d8..184ad60d5 100644
--- a/nova/db/sqlalchemy/api.py
+++ b/nova/db/sqlalchemy/api.py
@@ -1959,6 +1959,7 @@ def quota_get(context, project_id, resource, session=None):
@require_context
def quota_get_all_by_project(context, project_id):
+ authorize_project_context(context, project_id)
session = get_session()
result = {'project_id': project_id}
rows = session.query(models.Quota).\