Commit 1b7efbce authored by Jérome Perrin's avatar Jérome Perrin

Make sure we do not remove a role twice from the list of allowed roles.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4890 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c98d04b2
...@@ -275,6 +275,7 @@ def updateRoleMappingsFor(self, ob): ...@@ -275,6 +275,7 @@ def updateRoleMappingsFor(self, ob):
if role not in other_roles : if role not in other_roles :
refused_roles.append(role) refused_roles.append(role)
for role in refused_roles : for role in refused_roles :
if role in roles :
roles.remove(role) roles.remove(role)
if role_type=='tuple': if role_type=='tuple':
roles = tuple(roles) roles = tuple(roles)
......
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