From 950ab3971667fa749ef529de76aa515346fc6aeb Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sat, 19 Apr 2014 17:00:31 +0200 Subject: Redirect to /home. --- pyaggr3g470r/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pyaggr3g470r') diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index c50e2b45..4501a6dd 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -96,7 +96,7 @@ def authentication_required(e): @app.errorhandler(403) def authentication_failed(e): flash('Forbidden.', 'danger') - return redirect(url_for('login')) + return redirect(url_for('home')) @app.errorhandler(404) def page_not_found(e): @@ -598,7 +598,7 @@ def profile(): # @app.route('/admin/dashboard/', methods=['GET', 'POST']) @login_required -@admin_permission.require() +@admin_permission.require(http_exception=403) def dashboard(): """ Adminstrator's dashboard. -- cgit