Add Allowed Address Pair/Delete buttons are only visible to admin
Initially In Queens, when logging into Horizon in context
of a _member_ in any project, the "Add Allowed Address Pair"
and "Delete" buttons in "Network" -> "Networks" ->
<select a network> -> "Ports" -> <select a port> ->
"Allowed Address Pairs" are not visible.
When accessing the same panel in context of a project where the user
has the admin role, the "Add" and "Delete" button is visible and
functional.
This patch fixes the above issue by updating the policy_target.
Reviewed: https:/ /review. opendev. org/685045 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=d8ae1d05920 f144531fe16a70e 80f9871c37675f
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit d8ae1d05920f144 531fe16a70e80f9 871c37675f
Author: Shilpa Devharakar <email address hidden>
Date: Thu Aug 22 14:29:41 2019 +0530
Add Allowed Address Pair/Delete buttons are only visible to admin
Initially In Queens, when logging into Horizon in context
of a _member_ in any project, the "Add Allowed Address Pair"
and "Delete" buttons in "Network" -> "Networks" ->
<select a network> -> "Ports" -> <select a port> ->
"Allowed Address Pairs" are not visible.
When accessing the same panel in context of a project where the user
has the admin role, the "Add" and "Delete" button is visible and
functional.
This patch fixes the above issue by updating the policy_target.
Conflicts:
openstack_ dashboard/ dashboards/ admin/networks/ ports/tests. py
openstack_ dashboard/ dashboards/ project/ networks/ ports/tests. py
Change-Id: Ia7db6c2881c725 80a156eb97b11bb 51f295cfbce 9715d5613ab9c91 c15a75c189)
Closes-Bug: #1794421
(cherry picked from commit 87b57dfe7113da0