forked from 3wordchant/capsul-flask
more managed ips work: cli sql improvements, added admin panel
This commit is contained in:
@ -40,7 +40,7 @@ def admin_account_required(view):
|
||||
if session.get("account") is None or session.get("csrf-token") is None:
|
||||
return redirect(url_for("auth.login"))
|
||||
|
||||
if session.get("account") not in current_app.config["ADMIN_EMAIL_ADDRESSES_CSV"].split(","):
|
||||
if session.get("account") not in current_app.config["ADMIN_PANEL_ALLOW_EMAIL_ADDRESSES"].split(","):
|
||||
return redirect(url_for("auth.login"))
|
||||
|
||||
return view(**kwargs)
|
||||
|
Reference in New Issue
Block a user