Browse Source

redirect user to index if user not an admin

current_wdka_release
crunk 3 years ago
parent
commit
98387210a1
  1. 2
      verse/start.py

2
verse/start.py

@ -113,6 +113,8 @@ def distribusistash(path):
@APP.route("/admin", methods=["GET", "POST"])
@login_required
def admin():
if not isadminuser():
return redirect(url_for("index"))
return AdminPage()

Loading…
Cancel
Save