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,7 +275,8 @@ def updateRoleMappingsFor(self, ob):
if role not in other_roles :
refused_roles.append(role)
for role in refused_roles :
roles.remove(role)
if role in roles :
roles.remove(role)
if role_type=='tuple':
roles = tuple(roles)
if modifyRolesForPermission(ob, p, 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