FIX: edit checks for editing posts with no topic
This commit is contained in:
parent
b8d3fbd08b
commit
632ca42db9
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue