UserProfile.all_organisation_roles(self, portal) does not return unique values. In the end, this results in many logically identical records in table lizard_auth_client_userorganisationrole, because it is lacking a unique index on (user_id, organisation_id, role_id).
UserProfile.all_organisation_roles(self, portal) does not return unique values. In the end, this results in many logically identical records in table lizard_auth_client_userorganisationrole, because it is lacking a unique index on (user_id, organisation_id, role_id).