From 605e8d1f2368f37d7b49bc8aa3f1fd7b5253b441 Mon Sep 17 00:00:00 2001 From: Son NK <> Date: Sat, 23 May 2020 19:48:45 +0200 Subject: [PATCH] Fix DomainDeletedAlias check in Alias.create --- app/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models.py b/app/models.py index 20d1be84..6f75a724 100644 --- a/app/models.py +++ b/app/models.py @@ -701,7 +701,7 @@ class Alias(db.Model, ModelMixin): if DeletedAlias.get_by(email=email): raise AliasInTrashError - if DomainDeletedAlias.get_by(email=email, user_id=kw["user_id"]): + if DomainDeletedAlias.get_by(email=email): raise AliasInTrashError db.session.add(r)