FIX: topic might be night at this stage (#12929)
This commit is contained in:
parent
3ff9dbb15c
commit
374ff4c54c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue