Only check moderator permissions for Multi or ModSR cached queries.

This commit is contained in:
bsimpson63
2013-05-01 14:12:34 -04:00
parent 14eb7c3a4f
commit fa69542e70

View File

@@ -356,10 +356,8 @@ def moderated_srids(sr, user):
srs = [sr for sr in srs
if sr.is_moderator_with_perms(user, 'posts')]
return [sr._id for sr in srs]
elif not user or sr.is_moderator_with_perms(user, 'posts'):
return [sr._id]
else:
return []
return [sr._id]
@merged_cached_query
def get_spam(sr, user=None, include_links=True, include_comments=True):