aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2018-10-28 14:57:28 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2018-10-28 14:57:28 +0100
commitb32ec5bc4366951928ac06e3594e71385eb0f5ee (patch)
tree535e5f0e9259fa82d55ef5a948186cab968f1cc3 /src
parentAdded a listbox to select the categories. (diff)
downloadnewspipe-b32ec5bc4366951928ac06e3594e71385eb0f5ee.tar.gz
newspipe-b32ec5bc4366951928ac06e3594e71385eb0f5ee.tar.bz2
newspipe-b32ec5bc4366951928ac06e3594e71385eb0f5ee.zip
Fixed a bug: this view is accessible without authentication
Diffstat (limited to 'src')
-rw-r--r--src/web/views/user.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/web/views/user.py b/src/web/views/user.py
index 693f24b7..ac59b2c1 100644
--- a/src/web/views/user.py
+++ b/src/web/views/user.py
@@ -51,7 +51,7 @@ def user_stream(per_page, nickname=None):
"""
filters = {}
category_id = int(request.args.get('category_id', 0))
- category = CategoryController(current_user.id).read(id=category_id).first()
+ category = CategoryController().read(id=category_id).first()
if category:
filters['category_id'] = category_id
bgstack15