horizon/openstack_dashboard/dashboards/admin/floating_ips
David Lyle 43e9df85ab 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: I79314a45c3c552ebcb3bb7cc881c2467fa009c5d
Closes-Bug: #1643013
Closes-Bug: #1643074
2016-11-18 15:42:16 -07:00
..
templates/floating_ips Add floating IP panel to admin dashboard 2016-08-19 12:15:55 +08:00
__init__.py Add floating IP panel to admin dashboard 2016-08-19 12:15:55 +08:00
forms.py Add floating IP panel to admin dashboard 2016-08-19 12:15:55 +08:00
panel.py Rework hardcoded policy in admin dash 2016-11-18 15:42:16 -07:00
tables.py Add floating IP panel to admin dashboard 2016-08-19 12:15:55 +08:00
tests.py Add floating IP panel to admin dashboard 2016-08-19 12:15:55 +08:00
urls.py Add floating IP panel to admin dashboard 2016-08-19 12:15:55 +08:00
views.py Fix for typo in Horizon 2016-09-03 15:36:46 +00:00