mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: allow category group moderators to edit posts (#11005)
* FEATURE: allow category group moderators to edit posts If the `enable_category_group_moderation` SiteSetting is enabled, posts should be editable by those belonging to the appropraite groups.
This commit is contained in:
@@ -131,7 +131,8 @@ module PostGuardian
|
||||
(
|
||||
SiteSetting.trusted_users_can_edit_others? &&
|
||||
@user.has_trust_level?(TrustLevel[4])
|
||||
)
|
||||
) ||
|
||||
is_category_group_moderator?(post.topic.category)
|
||||
)
|
||||
|
||||
if post.topic&.archived? || post.user_deleted || post.deleted_at
|
||||
|
||||
Reference in New Issue
Block a user