Commit fecbb25e authored by Fabien Morin's avatar Fabien Morin

revert r29644 : it break many things because updateLocalRolesOnDocument was not

unrestricted like it was before. Now it is unrestricted again.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29761 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7353705c
...@@ -394,12 +394,7 @@ class ERP5TypeInformation(XMLObject, ...@@ -394,12 +394,7 @@ class ERP5TypeInformation(XMLObject,
# workflow and it is annoyning without security setted # workflow and it is annoyning without security setted
ob.portal_type = self.getId() ob.portal_type = self.getId()
# Here we don't use "if len(self.getFilteredRoleListFor(ob))" self.updateLocalRolesOnDocument(ob)
# but use "for role in self.getFilteredRoleListFor(ob)" because
# getFilteredRoleListFor returns a generator.
for role in self.getFilteredRoleListFor(ob):
self.updateLocalRolesOnDocument(ob)
break
# notify workflow after generating local roles, in order to prevent # notify workflow after generating local roles, in order to prevent
# Unauthorized error on transition's condition # Unauthorized error on transition's condition
......
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