Using model_query in the operation for retrieving tenant limits
will spare the need for explicit authorization check in the
quota controller. This is particularly relevant for the pecan
framework where every Neutron API call undergoes authZ checks
in the same pecan hook.
This patch will automatically adapt by eventuals changes
introducing "un-scoped" contexts.
Reviewed: https:/ /review. openstack. org/233855 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=24b482ac15b 5fa99edd2c34383 18a41f9af06bcf
Committed: https:/
Submitter: Jenkins
Branch: master
commit 24b482ac15b5fa9 9edd2c3438318a4 1f9af06bcf
Author: Salvatore Orlando <email address hidden>
Date: Mon Oct 12 15:47:03 2015 -0700
Scope get_tenant_quotas by tenant_id
Using model_query in the operation for retrieving tenant limits
will spare the need for explicit authorization check in the
quota controller. This is particularly relevant for the pecan
framework where every Neutron API call undergoes authZ checks
in the same pecan hook.
This patch will automatically adapt by eventuals changes
introducing "un-scoped" contexts.
Closes-bug: #1505406
Change-Id: I6952f5c85cd7fb 0263789f768d23d e3fe80b8183