aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-04-09 21:21:09 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-04-09 21:21:09 +0200
commitcdbd6d4a684909cc80a2f113fd105252767db63d (patch)
tree12cb67c0ad0241982676e0d82e6459cb30e656ac /pyaggr3g470r
parentUpdated about page. (diff)
downloadnewspipe-cdbd6d4a684909cc80a2f113fd105252767db63d.tar.gz
newspipe-cdbd6d4a684909cc80a2f113fd105252767db63d.tar.bz2
newspipe-cdbd6d4a684909cc80a2f113fd105252767db63d.zip
Fixed bug: all users were able to access to any article.
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r--pyaggr3g470r/views.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py
index 7ca3ac02..0f0d6822 100644
--- a/pyaggr3g470r/views.py
+++ b/pyaggr3g470r/views.py
@@ -250,7 +250,9 @@ def article(article_id=None):
if not article.readed:
article.readed = True
db.session.commit()
- return render_template('article.html', head_title=utils.clear_string(article.title), article=article)
+ return render_template('article.html', head_title=utils.clear_string(article.title), article=article)
+ return redirect(redirect_url())
+
@app.route('/mark_as_read/', methods=['GET'])
@app.route('/mark_as_read/<int:feed_id>', methods=['GET'])
bgstack15