Fix getting share networks and security services error
It will fail when non-admin tenants try to get share networks
and security services with option '{all_tenants: 1}'.
The reason is that the policy of 'get_all_share_networks' and
'get_all_security_services' are admin api, they do not allow
the non-admin tenants list the share networks and security
services with all_tenants=1. This patch removes the policy check
of non-admin tenants and allows non-admin tenants to request to
list with 'all_tenants=1', however 'all_tenants' in the request
is just ignored.
Change-Id: Ied021b66333f1254cd232bbc38562a4a9b762ad2
Co-Authored-By: Goutham Pacha Ravi <email address hidden>
Related-Bug: #1721787
(cherry picked from commit 9f69258cab9baf77384282b67feb390d0487d3b9)
Reviewed: https:/ /review. openstack. org/528731 /git.openstack. org/cgit/ openstack/ manila/ commit/ ?id=7a6955dd7fa 47b51e5f2a77660 61066ffaa0af8d
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit 7a6955dd7fa47b5 1e5f2a776606106 6ffaa0af8d
Author: Jiao Pengju <email address hidden>
Date: Thu Nov 23 23:15:36 2017 +0800
Fix getting share networks and security services error
It will fail when non-admin tenants try to get share networks share_networks' and all_security_ services' are admin api, they do not allow
and security services with option '{all_tenants: 1}'.
The reason is that the policy of 'get_all_
'get_
the non-admin tenants list the share networks and security
services with all_tenants=1. This patch removes the policy check
of non-admin tenants and allows non-admin tenants to request to
list with 'all_tenants=1', however 'all_tenants' in the request
is just ignored.
Change-Id: Ied021b66333f12 54cd232bbc38562 a4a9b762ad2 7384282b67feb39 0d0487d3b9)
Co-Authored-By: Goutham Pacha Ravi <email address hidden>
Related-Bug: #1721787
(cherry picked from commit 9f69258cab9baf7