Allow sponsors to see comments on pre-run/rejected promos.

This commit is contained in:
Neil Williams
2012-09-30 01:09:27 -07:00
committed by Logan Hanks
parent 77f219ecf4
commit d6d625b92a

View File

@@ -59,7 +59,9 @@ def visible_promo(article):
# promos are visible only if comments are not disabled and the
# user is either the author or the link is live/previously live.
if is_promo:
return (is_author or (not article.disable_comments and
return (c.user_is_sponsor or
is_author or
(not article.disable_comments and
article.promote_status >= promote.STATUS.promoted))
# not a promo, therefore it is visible
return True