FEATURE: When suspending a user, allow the Delete + Replies action

Previously you could only delete the post
This commit is contained in:
Robin Ward
2019-05-27 12:27:16 -04:00
parent 192562745f
commit d95a68b837
6 changed files with 33 additions and 7 deletions

View File

@@ -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)