mirror of
https://github.com/discourse/discourse.git
synced 2025-03-01 08:49:20 +00:00
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…
x
Reference in New Issue
Block a user