Commit 24f587a8 authored by iv's avatar iv

ERP5Workflow: remove all old guards setted up during workflow conversion

parent 8bd1fc97
...@@ -60,7 +60,6 @@ class Transition(IdAsReferenceMixin("transition_", "prefix"), XMLObject, ...@@ -60,7 +60,6 @@ class Transition(IdAsReferenceMixin("transition_", "prefix"), XMLObject,
isPortalContent = 1 isPortalContent = 1
isRADContent = 1 isRADContent = 1
trigger_type = TRIGGER_USER_ACTION #zwj: type is int 0, 1, 2 trigger_type = TRIGGER_USER_ACTION #zwj: type is int 0, 1, 2
guard = None
var_exprs = None # A mapping. var_exprs = None # A mapping.
default_reference = '' default_reference = ''
# Declarative security # Declarative security
......
...@@ -342,7 +342,6 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool): ...@@ -342,7 +342,6 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
# configure guard # configure guard
if tdef.guard: if tdef.guard:
transition.guard = tdef.guard
transition.setGuardRoleList(tdef.guard.roles) transition.setGuardRoleList(tdef.guard.roles)
transition.setGuardPermissionList(tdef.guard.permissions) transition.setGuardPermissionList(tdef.guard.permissions)
transition.setGuardGroupList(tdef.guard.groups) transition.setGuardGroupList(tdef.guard.groups)
...@@ -449,7 +448,6 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool): ...@@ -449,7 +448,6 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
worklist.setActionName(qdef.actbox_name) worklist.setActionName(qdef.actbox_name)
# configure guard # configure guard
if qdef.guard: if qdef.guard:
worklist.guard = qdef.guard
worklist.setGuardRoleList(qdef.guard.roles) worklist.setGuardRoleList(qdef.guard.roles)
worklist.setGuardPermissionList(qdef.guard.permissions) worklist.setGuardPermissionList(qdef.guard.permissions)
worklist.setGuardGroupList(qdef.guard.groups) worklist.setGuardGroupList(qdef.guard.groups)
...@@ -486,7 +484,6 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool): ...@@ -486,7 +484,6 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
# configure guard # configure guard
if tdef.guard: if tdef.guard:
interaction.guard = tdef.guard
interaction.setGuardRoleList(tdef.guard.roles) interaction.setGuardRoleList(tdef.guard.roles)
interaction.setGuardPermissionList(tdef.guard.permissions) interaction.setGuardPermissionList(tdef.guard.permissions)
interaction.setGuardGroupList(tdef.guard.groups) interaction.setGuardGroupList(tdef.guard.groups)
......
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