FIX: In case a topic is deleted, allow us to serialize their posts
This commit is contained in:
parent
8a1197626d
commit
14a8b3e29c
|
@ -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?) &&
|
||||
|
|
Loading…
Reference in New Issue