mirror of
https://github.com/discourse/discourse.git
synced 2025-06-19 22:23:04 +08:00
FIX: topic might be night at this stage (#12929)
This commit is contained in:
@ -130,7 +130,7 @@ module PostGuardian
|
||||
SiteSetting.trusted_users_can_edit_others? &&
|
||||
@user.has_trust_level?(TrustLevel[4])
|
||||
) ||
|
||||
is_category_group_moderator?(post.topic.category)
|
||||
is_category_group_moderator?(post.topic&.category)
|
||||
)
|
||||
|
||||
if post.topic&.archived? || post.user_deleted || post.deleted_at
|
||||
|
Reference in New Issue
Block a user