aboutsummaryrefslogtreecommitdiff
path: root/app/decorators.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/decorators.py')
-rw-r--r--app/decorators.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/decorators.py b/app/decorators.py
index df797bd..9fbf1f4 100644
--- a/app/decorators.py
+++ b/app/decorators.py
@@ -16,6 +16,8 @@ def admin_required(func):
return func(*args, **kwargs)
elif not current_user.is_authenticated:
return current_app.login_manager.unauthorized()
+ elif not current_user.is_confirmed:
+ return redirect(url_for("auth.not_confirmed"))
elif not current_user.is_admin:
return current_app.login_manager.unauthorized()
return func(*args, **kwargs)