🗑️(backend) remove useless methods on User

While removing analytics code in 15e922f, I forgot to remove
related code in the User model, used nowwhere else. Oopsie.
Fixed it!
This commit is contained in:
lebaudantoine
2024-11-13 11:22:59 +01:00
parent 7f09636791
commit a987830fb3
2 changed files with 0 additions and 16 deletions

View File

@@ -207,13 +207,6 @@ class User(AbstractBaseUser, BaseModel, auth_models.PermissionsMixin):
"""
return []
@property
def email_anonymized(self):
"""Anonymize the email address by replacing the local part with asterisks."""
if not self.email:
return ""
return f"***@{self.email.split('@')[1]}"
def get_resource_roles(resource: models.Model, user: User) -> List[str]:
"""