Commit 7593486a authored by iv's avatar iv

ERP5Workflow: rename erp5_permission_roles by state_permission_roles

+ remove unused dependencies
parent bf9a74c9
......@@ -55,7 +55,7 @@ class Interaction(IdAsReferenceMixin('interaction_', "prefix"), XMLObject,
managed_permission_list = ()
managed_role = ()
erp5_permission_roles = {} # { permission: [role] or (role,) }
state_permission_roles = {} # { permission: [role] or (role,) }
manager_bypass = 0
trigger_method_id = None
trigger_type = TRIGGER_WORKFLOW_METHOD
......
......@@ -66,6 +66,7 @@ class State(IdAsReferenceMixin("state_", "prefix"), XMLObject, CustomStorageMatr
isRADContent = 1
default_reference = ''
state_type = ()
state_permission_roles = {}
# Declarative security
security = ClassSecurityInfo()
......
......@@ -44,8 +44,6 @@ from Products.CMFCore.WorkflowCore import WorkflowException, ObjectDeleted,\
ObjectMoved
from Products.DCWorkflow.DCWorkflow import ValidationFailed
from Products.DCWorkflow.Expression import StateChangeInfo
from Products.DCWorkflowGraph.config import DOT_EXE
from Products.DCWorkflowGraph.DCWorkflowGraph import bin_search, getGraph
from Products.DCWorkflow.utils import Message as _
from Products.DCWorkflow.utils import modifyRolesForPermission
from Products.DCWorkflow.DCWorkflow import DCWorkflowDefinition as DCWorkflow
......@@ -78,7 +76,7 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject):
default_reference = ''
workflow_managed_permission = ()
managed_role = ()
erp5_permission_roles = {} # { permission: [role] or (role,) }
state_permission_roles = {} # { permission: [role] or (role,) }
manager_bypass = 0
# Declarative security
......
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