diff --git a/app/controllers/libraries_controller.rb b/app/controllers/libraries_controller.rb index e6d71b6a0..a2e70d95a 100644 --- a/app/controllers/libraries_controller.rb +++ b/app/controllers/libraries_controller.rb @@ -2,6 +2,7 @@ class LibrariesController < ApplicationController include PaginateHelper before_action :require_login, :check_auth, except: %i[index show] + before_action :check_account, except: %i[index show] after_action :increment_visit_count, only: [:show, :edit, :update] helper_method :current_library, :library_manageable? diff --git a/app/controllers/shixuns_controller.rb b/app/controllers/shixuns_controller.rb index 07ad71ec1..3145636df 100644 --- a/app/controllers/shixuns_controller.rb +++ b/app/controllers/shixuns_controller.rb @@ -5,7 +5,6 @@ class ShixunsController < ApplicationController before_action :require_login, :check_auth, except: [:download_file, :index, :menus] before_action :check_account, only: [:new, :create, :shixun_exec] - before_action :check_auth, except: [:download_file, :index, :menus] before_action :find_shixun, :shixun_access_allowed, except: [:index, :new, :create, :menus, :get_recommend_shixuns, :propaedeutics, :departments, :apply_shixun_mirror,