Updated permission in workflow clone views
authorThierry Florac <thierry.florac@onf.fr>
Tue, 18 Dec 2018 16:58:03 +0100
changeset 1185 944a3e4a78ab
parent 1184 72bee64f2f91
child 1186 1cefd3e1ba43
Updated permission in workflow clone views
src/pyams_content/shared/common/zmi/workflow.py
--- a/src/pyams_content/shared/common/zmi/workflow.py	Mon Dec 17 14:36:22 2018 +0100
+++ b/src/pyams_content/shared/common/zmi/workflow.py	Tue Dec 18 16:58:03 2018 +0100
@@ -23,7 +23,7 @@
 from zope.schema import Bool
 
 from pyams_content.features.preview.interfaces import IPreviewTarget
-from pyams_content.interfaces import CREATE_CONTENT_PERMISSION, MANAGE_CONTENT_PERMISSION, PUBLISH_CONTENT_PERMISSION
+from pyams_content.interfaces import CREATE_VERSION_PERMISSION, MANAGE_CONTENT_PERMISSION, PUBLISH_CONTENT_PERMISSION
 from pyams_content.shared.common.interfaces import IBaseSharedTool, IContributorRestrictions, IManagerRestrictions, \
     ISharedContent, IWfSharedContent
 from pyams_content.workflow import DELETED, DRAFT
@@ -654,9 +654,9 @@
 
 
 @pagelet_config(name='wf-clone.html', context=IWfSharedContent, layer=IPyAMSLayer,
-                permission=CREATE_CONTENT_PERMISSION)
+                permission=CREATE_VERSION_PERMISSION)
 @ajax_config(name='wf-clone.json', context=IWfSharedContent, layer=IPyAMSLayer,
-             permission=CREATE_CONTENT_PERMISSION, base=AJAXAddForm)
+             permission=CREATE_VERSION_PERMISSION, base=AJAXAddForm)
 class SharedContentCloneForm(WorkflowContentTransitionForm):
     """Shared content clone form"""