--- a/src/pyams_skin/viewlet/shortcuts/__init__.py Wed Oct 07 17:59:52 2015 +0200
+++ b/src/pyams_skin/viewlet/shortcuts/__init__.py Wed Oct 07 18:00:24 2015 +0200
@@ -18,6 +18,7 @@
# import interfaces
from pyams_skin.interfaces.viewlet import IShortcutsViewletManager, IShortcut
from pyams_skin.layer import IPyAMSLayer
+from pyams_utils.interfaces import VIEW_SYSTEM_PERMISSION
# import packages
from pyams_template.template import template_config
@@ -59,14 +60,14 @@
pass
else:
@viewlet_config(name='admin.shortcut', manager=IShortcutsViewletManager,
- layer=IPyAMSLayer, permission='system.view', weight=9999)
+ layer=IPyAMSLayer, permission=VIEW_SYSTEM_PERMISSION, weight=9999)
class ManagementInterfaceShortcut(Shortcut):
"""Access to management interface"""
bg_color_class = 'bg-color-orangeDark'
icon_class = 'fa-gears'
label = _("Management interface")
- url = '@@admin.html'
+ url = 'admin.html'
target = '_blank'
modal_target = False
checked = False