Restored action permission
authorThierry Florac <thierry.florac@onf.fr>
Tue, 29 Jan 2019 15:41:43 +0100
changeset 170 738ac721a83a
parent 169 e92c5c9a6c28
child 171 a43802ee52ce
Restored action permission
src/pyams_file/zmi/file.py
--- a/src/pyams_file/zmi/file.py	Fri Jan 18 15:34:08 2019 +0100
+++ b/src/pyams_file/zmi/file.py	Tue Jan 29 15:41:43 2019 +0100
@@ -23,7 +23,7 @@
 from pyams_pagelet.pagelet import pagelet_config
 from pyams_skin.interfaces.viewlet import IContextActions
 from pyams_skin.layer import IPyAMSLayer
-from pyams_utils.interfaces import VIEW_SYSTEM_PERMISSION
+from pyams_utils.interfaces import VIEW_SYSTEM_PERMISSION, MANAGE_SYSTEM_PERMISSION
 from pyams_viewlet.viewlet import viewlet_config
 from pyams_zmi.form import AdminDialogEditForm
 
@@ -35,7 +35,7 @@
 #
 
 @viewlet_config(name='file.properties.action', context=IFile, layer=IPyAMSLayer, view=Interface,
-                manager=IContextActions, weight=1)
+                manager=IContextActions, permission=MANAGE_SYSTEM_PERMISSION, weight=1)
 class FilePropertiesAction(FileModifierAction):
     """File properties action"""