8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-25 22:22:26 +00:00

Delete LDAPUser when full archiving a single user.

This commit is contained in:
klafyvel 2019-03-17 19:30:30 +01:00
parent 682803cca4
commit 2e2c72a9c3

View file

@ -618,6 +618,7 @@ class User(RevMixin, FieldPermissionModelMixin, AbstractBaseUser,
"""Full Archive = Archive + Service access complete deletion"""
self.archive()
self.delete_data()
LdapUser.objects.filter(name__in=self.pseudo)
def unarchive(self):
"""Unfilling the user"""