--- a/src/pyams_content/shared/zmi/sites.py Tue Nov 14 14:05:30 2017 +0100
+++ b/src/pyams_content/shared/zmi/sites.py Wed Nov 15 17:05:38 2017 +0100
@@ -16,13 +16,14 @@
# import standard library
# import interfaces
+from pyams_content.interfaces import MANAGE_SITE_ROOT_PERMISSION
from pyams_content.shared.common.interfaces import ISharedSite, IBaseSharedTool
from pyams_content.shared.common.interfaces.zmi import IDashboardTable
from pyams_content.shared.zmi.interfaces import ISiteTreeMenu
from pyams_skin.interfaces import IInnerPage, IPageHeader
from pyams_skin.interfaces.container import ITableWithActions
from pyams_skin.layer import IPyAMSLayer
-from pyams_utils.interfaces import VIEW_SYSTEM_PERMISSION, MANAGE_SYSTEM_PERMISSION
+from pyams_utils.interfaces import VIEW_SYSTEM_PERMISSION
from pyams_zmi.interfaces.menu import ISiteManagementMenu
from pyams_zmi.layer import IAdminLayer
from z3c.table.interfaces import IColumn, IValues
@@ -68,6 +69,8 @@
id = 'site_tree_table'
title = _("Blogs and shared sites")
+ sortOn = None
+
@property
def data_attributes(self):
attributes = super(SiteTreeTable, self).data_attributes
@@ -81,7 +84,7 @@
"""Site tree trash column"""
icon_hint = _("Delete shared site")
- permission = MANAGE_SYSTEM_PERMISSION
+ permission = MANAGE_SITE_ROOT_PERMISSION
@adapter_config(context=(ISite, IAdminLayer, SiteTreeTable), provides=IValues)
@@ -113,7 +116,7 @@
@view_config(name='delete-shared-site.json', context=ISite, request_type=IPyAMSLayer,
- permission=MANAGE_SYSTEM_PERMISSION, renderer='json', xhr=True)
+ permission=MANAGE_SITE_ROOT_PERMISSION, renderer='json', xhr=True)
def delete_shared_site(request):
"""Delete shared site from site manager"""
translate = request.localizer.translate