Commit ab62760f authored by Julien Muchembled's avatar Julien Muchembled

Make __ac_local_roles__ stable

Otherwise, the object could be modified (_p_changed=1) and reindexed for nothing.
parent 2d84f327
Pipeline #16992 failed with stage
in 0 seconds
......@@ -99,7 +99,7 @@ class LocalRoleAssignorMixIn(object):
## Update role assignments to groups
# Assign new roles
ac_local_roles = {group: list(role_list)
ac_local_roles = {group: sorted(role_list)
for group, role_list in group_id_role_dict.iteritems()
if role_list}
......
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