|
|
@ -2,7 +2,7 @@
|
|
|
|
class SubjectsController < ApplicationController
|
|
|
|
class SubjectsController < ApplicationController
|
|
|
|
layout 'base_subject'
|
|
|
|
layout 'base_subject'
|
|
|
|
# 如要添加或修改before_filter时,请将handle_openi_request这个before_filter放至第一位
|
|
|
|
# 如要添加或修改before_filter时,请将handle_openi_request这个before_filter放至第一位
|
|
|
|
before_filter :handle_openi_request, if: -> { user_login_and_from_openi? }, only: [:show]
|
|
|
|
# before_filter :handle_openi_request, if: -> { user_login_and_from_openi? }, only: [:show]
|
|
|
|
before_filter :require_login, :except => [:show, :index]
|
|
|
|
before_filter :require_login, :except => [:show, :index]
|
|
|
|
before_filter :check_authentication, :except => [:show, :index]
|
|
|
|
before_filter :check_authentication, :except => [:show, :index]
|
|
|
|
before_filter :find_subject, :except => [:index, :new, :create, :create_subject, :new_subject, :append_to_stage, :send_to_course]
|
|
|
|
before_filter :find_subject, :except => [:index, :new, :create, :create_subject, :new_subject, :append_to_stage, :send_to_course]
|
|
|
|