Fix: Fix admin permission

This commit is contained in:
Setyo Nugroho 2023-08-21 03:33:55 +00:00
parent ea4d6da2cc
commit be62ed1b94
6 changed files with 12 additions and 0 deletions

View file

@ -18,3 +18,5 @@ import horizon
class BillingOverview(horizon.Panel): class BillingOverview(horizon.Panel):
name = _("Billing Overview") name = _("Billing Overview")
slug = "billing_overview" slug = "billing_overview"
permissions = ('openstack.roles.admin', )

View file

@ -18,3 +18,5 @@ import horizon
class BillingSetting(horizon.Panel): class BillingSetting(horizon.Panel):
name = _("Billing Setting") name = _("Billing Setting")
slug = "billing_setting" slug = "billing_setting"
permissions = ('openstack.roles.admin', )

View file

@ -18,3 +18,5 @@ import horizon
class NotificationCenter(horizon.Panel): class NotificationCenter(horizon.Panel):
name = _("Notification Center") name = _("Notification Center")
slug = "notification_center" slug = "notification_center"
permissions = ('openstack.roles.admin', )

View file

@ -18,3 +18,5 @@ import horizon
class PriceConfiguration(horizon.Panel): class PriceConfiguration(horizon.Panel):
name = _("Price Configuration") name = _("Price Configuration")
slug = "price_configuration" slug = "price_configuration"
permissions = ('openstack.roles.admin', )

View file

@ -18,3 +18,5 @@ import horizon
class ProjectsBalance(horizon.Panel): class ProjectsBalance(horizon.Panel):
name = _("Projects Balance") name = _("Projects Balance")
slug = "projects_balance" slug = "projects_balance"
permissions = ('openstack.roles.admin', )

View file

@ -18,3 +18,5 @@ import horizon
class ProjectsInvoice(horizon.Panel): class ProjectsInvoice(horizon.Panel):
name = _("Projects Invoice") name = _("Projects Invoice")
slug = "projects_invoice" slug = "projects_invoice"
permissions = ('openstack.roles.admin', )