mirror of
https://github.com/discourse/discourse.git
synced 2025-06-21 00:45:26 +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? &&
|
SiteSetting.trusted_users_can_edit_others? &&
|
||||||
@user.has_trust_level?(TrustLevel[4])
|
@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
|
if post.topic&.archived? || post.user_deleted || post.deleted_at
|
||||||
|
Reference in New Issue
Block a user