Freezer is now available only for admin users
added permisions for freezer dashboard Change-Id: I75e35280178670f248dc8f7f3be7fdca4ab46bf4
This commit is contained in:
parent
b2c2918793
commit
f577f7efc3
@ -14,7 +14,7 @@ from django.utils.translation import ugettext_lazy as _
|
|||||||
|
|
||||||
import horizon
|
import horizon
|
||||||
|
|
||||||
import freezer_ui.dashboard as dashboard
|
from freezer_ui import dashboard
|
||||||
|
|
||||||
|
|
||||||
class BackupsPanel(horizon.Panel):
|
class BackupsPanel(horizon.Panel):
|
||||||
|
@ -26,6 +26,7 @@ class Freezer(horizon.Dashboard):
|
|||||||
slug = "freezer_ui"
|
slug = "freezer_ui"
|
||||||
panels = (FreezerDR,)
|
panels = (FreezerDR,)
|
||||||
default_panel = 'jobs'
|
default_panel = 'jobs'
|
||||||
|
permissions = ('openstack.roles.admin',)
|
||||||
|
|
||||||
|
|
||||||
horizon.register(Freezer)
|
horizon.register(Freezer)
|
||||||
|
@ -12,10 +12,10 @@
|
|||||||
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
from freezer_ui import dashboard
|
|
||||||
|
|
||||||
import horizon
|
import horizon
|
||||||
|
|
||||||
|
from freezer_ui import dashboard
|
||||||
|
|
||||||
|
|
||||||
class JobsPanel(horizon.Panel):
|
class JobsPanel(horizon.Panel):
|
||||||
name = _("Jobs")
|
name = _("Jobs")
|
||||||
|
@ -11,9 +11,11 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
from freezer_ui import dashboard
|
|
||||||
import horizon
|
import horizon
|
||||||
|
|
||||||
|
from freezer_ui import dashboard
|
||||||
|
|
||||||
|
|
||||||
class SessionsPanel(horizon.Panel):
|
class SessionsPanel(horizon.Panel):
|
||||||
name = _("Sessions")
|
name = _("Sessions")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user