From 4638155bbce324e0f84c318c7204f711756cda6c Mon Sep 17 00:00:00 2001 From: Son Date: Sat, 2 Oct 2021 19:18:24 +0200 Subject: [PATCH] allow import aliases for domains that have ownership_verified --- app/import_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/import_utils.py b/app/import_utils.py index 2c05503b..c8526e67 100644 --- a/app/import_utils.py +++ b/app/import_utils.py @@ -51,7 +51,7 @@ def import_from_csv(batch_import: BatchImport, user: User, lines): if ( not custom_domain - or not custom_domain.verified + or not custom_domain.ownership_verified or custom_domain.user_id != user.id ): LOG.d("domain %s can't be used %s", alias_domain, user)