commit 51a039e4616d9e6b3c953122ba357792ea3886a4
Author: David Lyle <email address hidden>
Date: Fri Nov 18 15:02:20 2016 -0700
Rework hardcoded policy in admin dash
Since the content in a Dashboard is not hardcoded, having hardcoded
policy checks to specific services at the dashboard level is wrong.
The Dashboard was designed to evaluate all panels to determine policy
so this type of thing could be avoided. This patch moves the content
specific policy checks to the panels where they apply.
Additionally, this fix uncovered another bug where policy_rules are
wrapped in a list regardless of format. This patch adds a check and
only wraps where necessary.
Reviewed: https:/ /review. openstack. org/407121 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=51a039e4616 d9e6b3c953122ba 357792ea3886a4
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit 51a039e4616d9e6 b3c953122ba3577 92ea3886a4
Author: David Lyle <email address hidden>
Date: Fri Nov 18 15:02:20 2016 -0700
Rework hardcoded policy in admin dash
Since the content in a Dashboard is not hardcoded, having hardcoded
policy checks to specific services at the dashboard level is wrong.
The Dashboard was designed to evaluate all panels to determine policy
so this type of thing could be avoided. This patch moves the content
specific policy checks to the panels where they apply.
Additionally, this fix uncovered another bug where policy_rules are
wrapped in a list regardless of format. This patch adds a check and
only wraps where necessary.
Change-Id: I79314a45c3c552 ebcb3bb7cc881c2 467fa009c5d ee96e9cff97f551 781baf70d1)
Closes-Bug: #1643013
Closes-Bug: #1643074
(cherry picked from commit 43e9df85ab286dd