remove potential duplicate in available_alias_domains
This commit is contained in:
parent
1524bb4e4b
commit
a2a4e50f27
|
@ -581,7 +581,8 @@ class User(db.Model, ModelMixin, UserMixin):
|
||||||
for custom_domain in self.verified_custom_domains():
|
for custom_domain in self.verified_custom_domains():
|
||||||
domains.append(custom_domain.domain)
|
domains.append(custom_domain.domain)
|
||||||
|
|
||||||
return domains
|
# can have duplicate where a "root" user has a domain that's also listed in SL domains
|
||||||
|
return list(set(domains))
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return f"<User {self.id} {self.name} {self.email}>"
|
return f"<User {self.id} {self.name} {self.email}>"
|
||||||
|
|
Loading…
Reference in New Issue