From b32ec5bc4366951928ac06e3594e71385eb0f5ee Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sun, 28 Oct 2018 14:57:28 +0100 Subject: Fixed a bug: this view is accessible without authentication --- src/web/views/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit