mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-26 22:52:26 +00:00
Empeche la syncronisation ldap pour les users_not_yet_member
This commit is contained in:
parent
fd1f070045
commit
5fc7763a65
1 changed files with 5 additions and 4 deletions
|
@ -563,6 +563,7 @@ class User(RevMixin, FieldPermissionModelMixin, AbstractBaseUser,
|
||||||
try:
|
try:
|
||||||
user_ldap = LdapUser.objects.get(uidNumber=self.uid_number)
|
user_ldap = LdapUser.objects.get(uidNumber=self.uid_number)
|
||||||
except LdapUser.DoesNotExist:
|
except LdapUser.DoesNotExist:
|
||||||
|
if self.state != 3:
|
||||||
user_ldap = LdapUser(uidNumber=self.uid_number)
|
user_ldap = LdapUser(uidNumber=self.uid_number)
|
||||||
base = True
|
base = True
|
||||||
access_refresh = True
|
access_refresh = True
|
||||||
|
|
Loading…
Reference in a new issue