@ -2,7 +2,7 @@ class BoardsController < ApplicationController
before_action :require_login, :check_auth
before_action :find_course, only: [:create]
before_action :set_board, except: [:create]
before_action :teacher_or_admin_allowed
before_action :teacher_allowed
def index
@boards = @course.boards.includes(messages: [:last_reply, :author])
@ -2,7 +2,7 @@ class CourseGroupsController < ApplicationController
before_action :set_group, except: [:create]
def create
tip_exception("分班名称不能为空") if params[:name].blank?
@ -1,7 +1,7 @@
class CourseSecondCategoriesController < ApplicationController
before_action :set_category
# 目录重命名
def rename_category