Commit bf9a74c9 authored by iv's avatar iv

ERP5Workflow: use cell method

instead of re-coding the wheel
parent d5cc61e1
......@@ -111,8 +111,10 @@ class PermissionRoles(XMLObject):
state = self.getParentValue()
cell_range = state.getCellRange()
cell_permission = sorted(cell_range[0])[self._getPermissionIndex()]
cell_role = sorted(cell_range[1])[self._getRoleIndex()]
cell_permission = self._getPermission()
cell_role = self._getRole()
# update the state permission structure to take into account
# the selection/non-selection of this cell
if value and (cell_role not in state.state_permission_roles[cell_permission]):
......
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