From 68d5c72d8ec7ca5bd0220b60afbb5bec4b6254ed Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Mon, 9 Mar 2020 22:11:27 +0800 Subject: [PATCH] 1 --- app/controllers/users/videos_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/users/videos_controller.rb b/app/controllers/users/videos_controller.rb index fdd7e0c76..b317efc83 100644 --- a/app/controllers/users/videos_controller.rb +++ b/app/controllers/users/videos_controller.rb @@ -57,7 +57,7 @@ class Users::VideosController < Users::BaseController video = Video.find_by(id: params[:id]) return render_forbidden unless video.user_id == current_user.id || current_user.admin_or_business? return render_not_found if video.blank? - return render_error('该状态下不能删除视频') unless video.pending? + return render_error('该状态下不能删除视频') unless video.published? video.destroy!