Merge "Fix v2 API dataframes get policy check"

This commit is contained in:
Zuul 2022-02-25 19:14:26 +00:00 committed by Gerrit Code Review
commit 02e6be6454
2 changed files with 7 additions and 1 deletions

View File

@ -72,7 +72,7 @@ class DataFrameList(base.BaseResource):
policy.authorize(
flask.request.context,
'dataframes:get',
{'tenant_id': flask.request.context.project_id},
{'project_id': flask.request.context.project_id},
)
begin = begin or tzutils.get_month_start()

View File

@ -0,0 +1,6 @@
---
fixes:
- |
Fixes policy check when getting dataframes using the v2 API, causing the
operation to fail when run by a non-admin user. See story 2009879
<https://storyboard.openstack.org/#!/story/2009879>`_ for more details.