aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-04-19 17:00:31 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-04-19 17:00:31 +0200
commit950ab3971667fa749ef529de76aa515346fc6aeb (patch)
tree7239d6bc7b477243c21a8123feab8078af6f3401
parentHandling PermissionDenied Exception. (diff)
downloadnewspipe-950ab3971667fa749ef529de76aa515346fc6aeb.tar.gz
newspipe-950ab3971667fa749ef529de76aa515346fc6aeb.tar.bz2
newspipe-950ab3971667fa749ef529de76aa515346fc6aeb.zip
Redirect to /home.
-rw-r--r--pyaggr3g470r/views.py4
1 files changed, 2 insertions, 2 deletions
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.
bgstack15