From 4bd24f0f06034c833c0cf3034bb9bbd5c2361877 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Wed, 7 Aug 2019 16:42:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E8=B5=84=E6=96=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/libraries_controller.rb | 1 + app/controllers/shixuns_controller.rb | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) 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,