直播断开

pay_subject
cxt 5 years ago
parent e4cf6f9e46
commit 5077482afa

@ -1,8 +1,7 @@
class LiveLinksController < ApplicationController class LiveLinksController < ApplicationController
before_action :require_login before_action :require_login
before_action :find_course, only: [:index, :create] before_action :find_course, only: [:index, :create]
before_action :user_course_identity before_action :user_course_identity, :teacher_allowed, only: [:create]
before_action :teacher_allowed, only: [:create]
def index def index
lives = @course.live_links.order("id desc") lives = @course.live_links.order("id desc")

Loading…
Cancel
Save