mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-02-11 23:14:56 -05:00
Allow sponsors to see comments on pre-run/rejected promos.
This commit is contained in:
committed by
Logan Hanks
parent
77f219ecf4
commit
d6d625b92a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user