mirror of
https://github.com/viq/NewsBlur.git
synced 2025-04-13 09:38:09 +00:00
Merge pull request #1817 from aladh/patch-1
Prevent unauthorized access to feeds with a single subscriber
This commit is contained in:
commit
67b1041401
1 changed files with 4 additions and 0 deletions
|
@ -671,6 +671,10 @@ def load_single_feed(request, feed_id):
|
|||
if feed.is_newsletter and not usersub:
|
||||
# User must be subscribed to a newsletter in order to read it
|
||||
raise Http404
|
||||
|
||||
if feed.num_subscribers = 1 and not usersub:
|
||||
# This feed could be private so user must be subscribed in order to read it
|
||||
raise Http404
|
||||
|
||||
if page > 400:
|
||||
logging.user(request, "~BR~FK~SBOver page 400 on single feed: %s" % page)
|
||||
|
|
Loading…
Add table
Reference in a new issue