From 71cb70e914ed4ba61caafe11cf9bf33f4fb3d27f Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Mon, 14 Nov 2016 07:39:36 +0100 Subject: Better checks for the public pages. --- src/web/views/feed.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/web/views/feed.py') diff --git a/src/web/views/feed.py b/src/web/views/feed.py index 6bc4afe1..3edb942e 100644 --- a/src/web/views/feed.py +++ b/src/web/views/feed.py @@ -80,10 +80,11 @@ def feed(feed_id=None): @etag_match def feed_pub(feed_id=None): """ - Presents details of a pubic feed. + Presents details of a pubic feed if the profile of the owner is also + public. """ feed = FeedController(None).get(id=feed_id) - if feed.private: + if feed.private or not feed.user.is_public_profile: return render_template('errors/404.html'), 404 return feed_view(feed_id, None) -- cgit