user can't import csv if current_user.disable_import
This commit is contained in:
parent
6f4c9f6c5a
commit
a17e81a8f1
|
@ -18,6 +18,13 @@ def batch_import_route():
|
||||||
if not current_user.verified_custom_domains():
|
if not current_user.verified_custom_domains():
|
||||||
flash("Alias batch import is only available for custom domains", "warning")
|
flash("Alias batch import is only available for custom domains", "warning")
|
||||||
|
|
||||||
|
if current_user.disable_import:
|
||||||
|
flash(
|
||||||
|
"you cannot use the import feature, please contact SimpleLogin team",
|
||||||
|
"error",
|
||||||
|
)
|
||||||
|
return redirect(url_for("dashboard.index"))
|
||||||
|
|
||||||
batch_imports = BatchImport.filter_by(user_id=current_user.id).all()
|
batch_imports = BatchImport.filter_by(user_id=current_user.id).all()
|
||||||
|
|
||||||
if request.method == "POST":
|
if request.method == "POST":
|
||||||
|
|
Loading…
Reference in a new issue