上传视频修改功能

dev_video
daiao 5 years ago
parent 9fd31a73e5
commit f501c98c60

@ -57,6 +57,14 @@ class Users::VideosController < Users::BaseController
def current_video
@_current_video ||= observed_user.videos.find_by(id: params[:id])
if @_current_video.nil?
video = Video.find_by(id: params[:id])
if video.course_videos.present?
video
end
else
@_current_video
end
end
def search_params

Loading…
Cancel
Save