FIX: edit checks for editing posts with no topic

This commit is contained in:
Jeff Wong 2018-10-03 18:34:47 -07:00
parent b8d3fbd08b
commit 632ca42db9
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ module PostGuardian
)
)
if post.topic.archived? || post.user_deleted || post.deleted_at
if post.topic&.archived? || post.user_deleted || post.deleted_at
return false
end