mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-13 02:58:17 -06:00
15831 monkeypatch LDAP _mirror_group function for NB4
This commit is contained in:
parent
1e6be996ae
commit
7807edf552
@ -325,6 +325,8 @@ try:
|
||||
permission_filter = permission_filter | Q(groups__name__in=user_obj.ldap_user.group_names)
|
||||
return permission_filter
|
||||
|
||||
# Monkey-patch _mirror_groups, code is from django-auth-ldap.backends._LDAPUser
|
||||
# There are no changes to this routine, the 'fix' is the import of Group above.
|
||||
def _mirror_groups(self):
|
||||
"""
|
||||
Mirrors the user's LDAP groups in the Django database and updates the
|
||||
|
Loading…
Reference in New Issue
Block a user