From 5077482afa294580e891e1dcd111bbffcb6eea37 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Sun, 9 Feb 2020 23:10:29 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B4=E6=92=AD=E6=96=AD=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/live_links_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/live_links_controller.rb b/app/controllers/live_links_controller.rb index 085a8178b..b1ff0c187 100644 --- a/app/controllers/live_links_controller.rb +++ b/app/controllers/live_links_controller.rb @@ -1,8 +1,7 @@ class LiveLinksController < ApplicationController before_action :require_login before_action :find_course, only: [:index, :create] - before_action :user_course_identity - before_action :teacher_allowed, only: [:create] + before_action :user_course_identity, :teacher_allowed, only: [:create] def index lives = @course.live_links.order("id desc")