|
|
@ -14,7 +14,7 @@ module Admin |
|
|
|
@suspension = Form::AdminSuspensionConfirmation.new(suspension_params) |
|
|
|
@suspension = Form::AdminSuspensionConfirmation.new(suspension_params) |
|
|
|
|
|
|
|
|
|
|
|
if suspension_params[:acct] == @account.acct |
|
|
|
if suspension_params[:acct] == @account.acct |
|
|
|
resolve_report! if suspension_params[:report_id] |
|
|
|
resolve_report! if suspension_params[:report_id].present? |
|
|
|
perform_suspend! |
|
|
|
perform_suspend! |
|
|
|
mark_reports_resolved! |
|
|
|
mark_reports_resolved! |
|
|
|
redirect_to admin_accounts_path |
|
|
|
redirect_to admin_accounts_path |
|
|
|