Commit 807acc79 authored by Romain Courteaud's avatar Romain Courteaud

Manage the Delete Objects permission in ERP5 Workflow.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10165 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 424358be
...@@ -64,6 +64,7 @@ ModifyCookieCrumblers = permissions.ModifyCookieCrumblers ...@@ -64,6 +64,7 @@ ModifyCookieCrumblers = permissions.ModifyCookieCrumblers
ReplyToItem = permissions.ReplyToItem ReplyToItem = permissions.ReplyToItem
ManagePortal = permissions.ManagePortal ManagePortal = permissions.ManagePortal
ModifyPortalContent = permissions.ModifyPortalContent ModifyPortalContent = permissions.ModifyPortalContent
DeleteObjects = permissions.DeleteObjects
ChangeLocalRoles = permissions.ChangeLocalRoles ChangeLocalRoles = permissions.ChangeLocalRoles
ListPortalMembers = permissions.ListPortalMembers ListPortalMembers = permissions.ListPortalMembers
AddPortalFolders = permissions.AddPortalFolders AddPortalFolders = permissions.AddPortalFolders
......
...@@ -361,7 +361,8 @@ def setupERP5Workflow(wf): ...@@ -361,7 +361,8 @@ def setupERP5Workflow(wf):
for perm in (Permissions.AccessContentsInformation, for perm in (Permissions.AccessContentsInformation,
Permissions.View, Permissions.View,
Permissions.AddPortalContent, Permissions.AddPortalContent,
Permissions.ModifyPortalContent ): Permissions.ModifyPortalContent,
Permissions.DeleteObjects):
wf.addManagedPermission(perm) wf.addManagedPermission(perm)
wf.states.setInitialState('draft') wf.states.setInitialState('draft')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment