Skip to content

Commit

Permalink
Merge pull request #3856 from awieckowski/fix-ldap-groups-sync
Browse files Browse the repository at this point in the history
Fix LDAP Groups sync
  • Loading branch information
hipek8 authored Oct 29, 2024
2 parents 8d1a3d9 + 4666797 commit e8e1415
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ralph/accounts/ldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def mirror_groups(self):
new_groups = [Group.objects.get_or_create(name=name)[0] for name
in target_group_names if name not in existing_group_names]

self._user.groups = existing_groups + new_groups
self._user.groups.set(existing_groups + new_groups)

_LDAPUser._mirror_groups_original = _LDAPUser._mirror_groups
_LDAPUser._mirror_groups = mirror_groups
Expand Down

0 comments on commit e8e1415

Please sign in to comment.