mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: TL4 users cannot delete others posts (#13554)
This commit is contained in:
@@ -190,7 +190,7 @@ module PostGuardian
|
||||
# Can't delete the first post
|
||||
return false if post.is_first_post?
|
||||
|
||||
return true if can_moderate_topic?(post.topic)
|
||||
return true if is_staff? || is_category_group_moderator?(post.topic&.category)
|
||||
|
||||
# Can't delete posts in archived topics unless you are staff
|
||||
return false if post.topic&.archived?
|
||||
|
||||
Reference in New Issue
Block a user