From d6d625b92a4298dcdf9dd4f10a7227be5baa2c74 Mon Sep 17 00:00:00 2001 From: Neil Williams Date: Sun, 30 Sep 2012 01:09:27 -0700 Subject: [PATCH] Allow sponsors to see comments on pre-run/rejected promos. --- r2/r2/controllers/validator/validator.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/r2/r2/controllers/validator/validator.py b/r2/r2/controllers/validator/validator.py index 0d20fc7fa..506b9fd60 100644 --- a/r2/r2/controllers/validator/validator.py +++ b/r2/r2/controllers/validator/validator.py @@ -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