Permalink
Browse files

Skip messages without view privileges in builders.

  • Loading branch information...
1 parent f8d7879 commit 28683de774802960046bde1f07fcd0defbd34d3e @chromakode chromakode committed May 1, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 r2/r2/models/builder.py
@@ -272,6 +272,8 @@ def must_skip(self, item):
return False
if hasattr(item, 'subreddit') and not item.subreddit.can_view(user):
return True
+ if hasattr(item, 'can_view_slow') and not item.can_view_slow():
+ return True
class QueryBuilder(Builder):
def __init__(self, query, wrap=Wrapped, keep_fn=None, skip=False, **kw):

0 comments on commit 28683de

Please sign in to comment.