mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: When suspending a user, allow the Delete + Replies action
Previously you could only delete the post
This commit is contained in:
@@ -551,6 +551,8 @@ class Admin::UsersController < Admin::AdminController
|
||||
case params[:post_action]
|
||||
when 'delete'
|
||||
PostDestroyer.new(current_user, post).destroy
|
||||
when "delete_replies"
|
||||
PostDestroyer.delete_with_replies(current_user, post)
|
||||
when 'edit'
|
||||
revisor = PostRevisor.new(post)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user