Merge "Revert "Add policy rules to project panels""
This commit is contained in:
commit
4f13234118
@ -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']
|
||||
|
@ -21,4 +21,3 @@ class Instances(horizon.Panel):
|
||||
name = _("Instances")
|
||||
slug = 'instances'
|
||||
permissions = ('openstack.services.compute',)
|
||||
policy_rules = (("compute", "compute:get"),)
|
||||
|
@ -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"),)
|
||||
|
@ -21,4 +21,3 @@ class Networks(horizon.Panel):
|
||||
name = _("Networks")
|
||||
slug = 'networks'
|
||||
permissions = ('openstack.services.network',)
|
||||
policy_rules = (("network", "get_network"),)
|
||||
|
@ -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():
|
||||
|
@ -19,4 +19,3 @@ class Stacks(horizon.Panel):
|
||||
name = _("Stacks")
|
||||
slug = "stacks"
|
||||
permissions = ('openstack.services.orchestration',)
|
||||
policy_rules = (("orchestration", "stacks:index"),)
|
||||
|
Loading…
Reference in New Issue
Block a user