Merge "Freezer is now available only for admin users"
This commit is contained in:
commit
503b93a675
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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user