Delete unnecessary permissions on panel
Admin dashboard is already set 'openstack.roles.admin', so same permission on panel in Admin dashboard is unncessary. Change-Id: Ib7001042456b4c6ab32273a7b80951d551e32c9a Closes-bug: #1532156
This commit is contained in:
parent
3a4093ffd2
commit
c2dc30cefe
@ -20,4 +20,4 @@ import horizon
|
|||||||
class Hypervisors(horizon.Panel):
|
class Hypervisors(horizon.Panel):
|
||||||
name = _("Hypervisors")
|
name = _("Hypervisors")
|
||||||
slug = 'hypervisors'
|
slug = 'hypervisors'
|
||||||
permissions = ('openstack.roles.admin', 'openstack.services.compute')
|
permissions = ('openstack.services.compute',)
|
||||||
|
@ -24,4 +24,4 @@ import horizon
|
|||||||
class Instances(horizon.Panel):
|
class Instances(horizon.Panel):
|
||||||
name = _("Instances")
|
name = _("Instances")
|
||||||
slug = 'instances'
|
slug = 'instances'
|
||||||
permissions = ('openstack.roles.admin', 'openstack.services.compute')
|
permissions = ('openstack.services.compute',)
|
||||||
|
@ -23,7 +23,6 @@ from openstack_dashboard.api import glance
|
|||||||
class MetadataDefinitions(horizon.Panel):
|
class MetadataDefinitions(horizon.Panel):
|
||||||
name = _("Metadata Definitions")
|
name = _("Metadata Definitions")
|
||||||
slug = 'metadata_defs'
|
slug = 'metadata_defs'
|
||||||
permissions = ('openstack.roles.admin',)
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def can_register():
|
def can_register():
|
||||||
|
@ -26,7 +26,6 @@ from openstack_dashboard.dashboards.admin import dashboard
|
|||||||
class Overview(horizon.Panel):
|
class Overview(horizon.Panel):
|
||||||
name = _("Overview")
|
name = _("Overview")
|
||||||
slug = 'overview'
|
slug = 'overview'
|
||||||
permissions = ('openstack.roles.admin',)
|
|
||||||
|
|
||||||
|
|
||||||
dashboard.Admin.register(Overview)
|
dashboard.Admin.register(Overview)
|
||||||
|
Loading…
Reference in New Issue
Block a user