8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-10-06 02:52:10 +00:00

Empeche la syncronisation ldap pour les users_not_yet_member

This commit is contained in:
grisel-davy 2018-08-30 23:08:23 +02:00 committed by Alexandre Iooss
parent fd1f070045
commit 5fc7763a65

View file

@ -563,6 +563,7 @@ class User(RevMixin, FieldPermissionModelMixin, AbstractBaseUser,
try:
user_ldap = LdapUser.objects.get(uidNumber=self.uid_number)
except LdapUser.DoesNotExist:
if self.state != 3:
user_ldap = LdapUser(uidNumber=self.uid_number)
base = True
access_refresh = True