# HG changeset patch # User Thierry Florac # Date 1548772903 -3600 # Node ID 738ac721a83a9821ec699d8ecc56d04c2d1fb807 # Parent e92c5c9a6c284af9b36431b8449bc5ca091622e8 Restored action permission diff -r e92c5c9a6c28 -r 738ac721a83a 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"""