Merge "Freezer is now available only for admin users"

This commit is contained in:
Jenkins 2015-10-12 14:38:01 +00:00 committed by Gerrit Code Review
commit 503b93a675
4 changed files with 7 additions and 4 deletions
freezer_ui

@ -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):

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

@ -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")

@ -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")