|
|
@ -3,7 +3,7 @@
|
|
|
|
class ShixunsController < ApplicationController
|
|
|
|
class ShixunsController < ApplicationController
|
|
|
|
layout 'base_shixun'
|
|
|
|
layout 'base_shixun'
|
|
|
|
# 如要添加或修改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 }
|
|
|
|
# before_filter :handle_openi_request, if: -> { user_login_and_from_openi }
|
|
|
|
before_filter :require_login, :except => [:ghook, :download_file, :show, :index]
|
|
|
|
before_filter :require_login, :except => [:ghook, :download_file, :show, :index]
|
|
|
|
before_filter :check_authentication, :except => [:ghook, :download_file, :show, :index]
|
|
|
|
before_filter :check_authentication, :except => [:ghook, :download_file, :show, :index]
|
|
|
|
before_filter :find_shixun, :except => [ :index, :new, :create, :index, :search, :shixun_courses, :new_disscuss, :shixun_migrate, :qrcode, :download_file, :departments, :get_mirror_script, :send_message_to_administrator]
|
|
|
|
before_filter :find_shixun, :except => [ :index, :new, :create, :index, :search, :shixun_courses, :new_disscuss, :shixun_migrate, :qrcode, :download_file, :departments, :get_mirror_script, :send_message_to_administrator]
|
|
|
|