From 8e03e51f71058ffd04f1ca27e63fff8d718d394a Mon Sep 17 00:00:00 2001 From: David Lyle Date: Tue, 3 Jan 2017 19:35:35 +0000 Subject: [PATCH] Revert "Add policy rules to project panels" This reverts commit 59741bd46ebd7b6570892dad394aad6c8b7cc990. Change-Id: I4dab9699f432230ba623b35db33fe02971350c15 --- openstack_dashboard/dashboards/project/firewalls/panel.py | 1 - openstack_dashboard/dashboards/project/instances/panel.py | 1 - openstack_dashboard/dashboards/project/network_topology/panel.py | 1 - openstack_dashboard/dashboards/project/networks/panel.py | 1 - openstack_dashboard/dashboards/project/routers/panel.py | 1 - openstack_dashboard/dashboards/project/stacks/panel.py | 1 - 6 files changed, 6 deletions(-) diff --git a/openstack_dashboard/dashboards/project/firewalls/panel.py b/openstack_dashboard/dashboards/project/firewalls/panel.py index 7cf6b99c0..1e916a6c6 100644 --- a/openstack_dashboard/dashboards/project/firewalls/panel.py +++ b/openstack_dashboard/dashboards/project/firewalls/panel.py @@ -25,7 +25,6 @@ class Firewall(horizon.Panel): name = _("Firewalls") slug = "firewalls" permissions = ('openstack.services.network',) - policy_rules = (("network", "get_firewall"),) def allowed(self, context): request = context['request'] diff --git a/openstack_dashboard/dashboards/project/instances/panel.py b/openstack_dashboard/dashboards/project/instances/panel.py index a5fe8224a..085b9e99d 100644 --- a/openstack_dashboard/dashboards/project/instances/panel.py +++ b/openstack_dashboard/dashboards/project/instances/panel.py @@ -21,4 +21,3 @@ class Instances(horizon.Panel): name = _("Instances") slug = 'instances' permissions = ('openstack.services.compute',) - policy_rules = (("compute", "compute:get"),) diff --git a/openstack_dashboard/dashboards/project/network_topology/panel.py b/openstack_dashboard/dashboards/project/network_topology/panel.py index 9ba78ec52..593530dd4 100644 --- a/openstack_dashboard/dashboards/project/network_topology/panel.py +++ b/openstack_dashboard/dashboards/project/network_topology/panel.py @@ -25,4 +25,3 @@ class NetworkTopology(horizon.Panel): name = _("Network Topology") slug = 'network_topology' permissions = ('openstack.services.network', ) - policy_rules = (("network", "get_auto_allocated_topology"),) diff --git a/openstack_dashboard/dashboards/project/networks/panel.py b/openstack_dashboard/dashboards/project/networks/panel.py index 18b649bf0..43976ec1d 100644 --- a/openstack_dashboard/dashboards/project/networks/panel.py +++ b/openstack_dashboard/dashboards/project/networks/panel.py @@ -21,4 +21,3 @@ class Networks(horizon.Panel): name = _("Networks") slug = 'networks' permissions = ('openstack.services.network',) - policy_rules = (("network", "get_network"),) diff --git a/openstack_dashboard/dashboards/project/routers/panel.py b/openstack_dashboard/dashboards/project/routers/panel.py index 9995f2a33..fa7b159c4 100644 --- a/openstack_dashboard/dashboards/project/routers/panel.py +++ b/openstack_dashboard/dashboards/project/routers/panel.py @@ -22,7 +22,6 @@ class Routers(horizon.Panel): name = _("Routers") slug = 'routers' permissions = ('openstack.services.network',) - policy_rules = (("network", "get_router"),) @staticmethod def can_register(): diff --git a/openstack_dashboard/dashboards/project/stacks/panel.py b/openstack_dashboard/dashboards/project/stacks/panel.py index 90b7706ce..f9e880038 100644 --- a/openstack_dashboard/dashboards/project/stacks/panel.py +++ b/openstack_dashboard/dashboards/project/stacks/panel.py @@ -19,4 +19,3 @@ class Stacks(horizon.Panel): name = _("Stacks") slug = "stacks" permissions = ('openstack.services.orchestration',) - policy_rules = (("orchestration", "stacks:index"),)