Changed permissions
authorThierry Florac <thierry.florac@onf.fr>
Wed, 12 Jul 2017 11:51:04 +0200
changeset 109 56ed1a90e8e6
parent 108 8d9c44f19754
child 110 991135437798
Changed permissions
src/pyams_content/shared/common/zmi/manager.py
--- a/src/pyams_content/shared/common/zmi/manager.py	Wed Jul 12 11:50:34 2017 +0200
+++ b/src/pyams_content/shared/common/zmi/manager.py	Wed Jul 12 11:51:04 2017 +0200
@@ -81,7 +81,7 @@
 #
 
 @viewlet_config(name='properties.menu', context=ISharedTool, layer=IAdminLayer,
-                manager=ISiteManagementMenu, permission=VIEW_SYSTEM_PERMISSION, weight=1)
+                manager=ISiteManagementMenu, permission=MANAGE_TOOL_PERMISSION, weight=1)
 @viewletmanager_config(name='properties.menu', layer=IAdminLayer, provides=IPropertiesMenu)
 @implementer(IPropertiesMenu)
 class SharedToolPropertiesMenu(MenuItem):
@@ -92,7 +92,7 @@
     url = '#properties.html'
 
 
-@pagelet_config(name='properties.html', context=ISharedTool, layer=IPyAMSLayer, permission=VIEW_SYSTEM_PERMISSION)
+@pagelet_config(name='properties.html', context=ISharedTool, layer=IPyAMSLayer, permission=MANAGE_TOOL_PERMISSION)
 @implementer(IWidgetForm, IInnerPage)
 class SharedToolPropertiesEditForm(AdminEditForm):
     """Shared tool properties edit form"""