Updated properties view permission
authorThierry Florac <thierry.florac@onf.fr>
Tue, 30 Oct 2018 10:15:29 +0100
changeset 1048 a9b49a33673f
parent 1047 a1b6d3389684
child 1049 6d6279200826
Updated properties view permission
src/pyams_content/shared/common/zmi/properties.py
--- a/src/pyams_content/shared/common/zmi/properties.py	Mon Oct 29 16:47:24 2018 +0100
+++ b/src/pyams_content/shared/common/zmi/properties.py	Tue Oct 30 10:15:29 2018 +0100
@@ -62,7 +62,7 @@
 
 
 @viewlet_config(name='properties.submenu', context=IWfSharedContent, layer=IAdminLayer,
-                manager=IPropertiesMenu, permission=MANAGE_CONTENT_PERMISSION, weight=10)
+                manager=IPropertiesMenu, permission=VIEW_SYSTEM_PERMISSION, weight=10)
 class SharedContentPropertiesMenu(MenuItem):
     """Shared content properties menu"""
 
@@ -72,7 +72,7 @@
 
 
 @pagelet_config(name='properties.html', context=IWfSharedContent, layer=IPyAMSLayer,
-                permission=MANAGE_CONTENT_PERMISSION)
+                permission=VIEW_SYSTEM_PERMISSION)
 @ajax_config(name='properties.json', context=IWfSharedContent, layer=IPyAMSLayer,
              permission=MANAGE_CONTENT_PERMISSION)
 @implementer(IPropertiesEditForm, IWidgetForm, IInnerPage)