mirror of
https://github.com/simple-login/app.git
synced 2025-02-25 00:03:03 +08:00
user can't import csv if current_user.disable_import
This commit is contained in:
parent
6f4c9f6c5a
commit
a17e81a8f1
1 changed files with 7 additions and 0 deletions
|
@ -18,6 +18,13 @@ def batch_import_route():
|
|||
if not current_user.verified_custom_domains():
|
||||
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()
|
||||
|
||||
if request.method == "POST":
|
||||
|
|
Loading…
Reference in a new issue