FIX: In case a topic is deleted, allow us to serialize their posts

This commit is contained in:
Robin Ward 2015-02-03 14:51:29 -05:00
parent 8a1197626d
commit 14a8b3e29c

View file

@ -20,7 +20,7 @@ module PostGuardian
not(is_flag || already_taken_this_action) &&
# nothing except flagging on archived topics
not(post.topic.archived?) &&
not(post.topic.try(:archived?)) &&
# nothing except flagging on deleted posts
not(post.trashed?) &&