horizon/openstack_dashboard/dashboards/admin/ngflavors
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/ngflavors Add Magic Search Filtering to NG Flavors 2016-02-06 07:17:34 +00:00
__init__.py Add angular flavors panel 2015-10-21 13:22:50 -07:00
panel.py Rework hardcoded policy in admin dash 2016-11-18 15:42:16 -07:00
urls.py Update URLs to Django 1.8+ style 2016-03-28 11:03:08 +01:00
views.py Add angular flavors panel 2015-10-21 13:22:50 -07:00