Freezer is now available only for admin users

added permisions for freezer dashboard

Change-Id: I75e35280178670f248dc8f7f3be7fdca4ab46bf4
This commit is contained in:
memo 2015-10-08 15:58:47 +01:00
parent b2c2918793
commit f577f7efc3
4 changed files with 7 additions and 4 deletions

View File

@ -14,7 +14,7 @@ from django.utils.translation import ugettext_lazy as _
import horizon
import freezer_ui.dashboard as dashboard
from freezer_ui import dashboard
class BackupsPanel(horizon.Panel):

View File

@ -26,6 +26,7 @@ class Freezer(horizon.Dashboard):
slug = "freezer_ui"
panels = (FreezerDR,)
default_panel = 'jobs'
permissions = ('openstack.roles.admin',)
horizon.register(Freezer)

View File

@ -12,10 +12,10 @@
from django.utils.translation import ugettext_lazy as _
from freezer_ui import dashboard
import horizon
from freezer_ui import dashboard
class JobsPanel(horizon.Panel):
name = _("Jobs")

View File

@ -11,9 +11,11 @@
# under the License.
from django.utils.translation import ugettext_lazy as _
from freezer_ui import dashboard
import horizon
from freezer_ui import dashboard
class SessionsPanel(horizon.Panel):
name = _("Sessions")