mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 20:44:40 +08:00
Delete all posts is allowed for the same amount of time as delete user
This commit is contained in:
@ -203,7 +203,7 @@ class Guardian
|
||||
end
|
||||
|
||||
def can_delete_all_posts?(user)
|
||||
is_staff? && user && !user.admin? && user.created_at >= 7.days.ago && user.post_count <= SiteSetting.delete_all_posts_max.to_i
|
||||
is_staff? && user && !user.admin? && user.created_at >= SiteSetting.delete_user_max_age.days.ago && user.post_count <= SiteSetting.delete_all_posts_max.to_i
|
||||
end
|
||||
|
||||
def can_remove_allowed_users?(topic)
|
||||
|
Reference in New Issue
Block a user