From 64ad2f75574213db5c364b6f12295f5102524b80 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Mon, 24 Feb 2020 11:48:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/courses_controller.rb | 2 +- app/controllers/weapps/shixun_lists_controller.rb | 1 - app/controllers/weapps/subjects_controller.rb | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/controllers/courses_controller.rb b/app/controllers/courses_controller.rb index baa8b0d85..d0a2e5e4b 100644 --- a/app/controllers/courses_controller.rb +++ b/app/controllers/courses_controller.rb @@ -13,7 +13,7 @@ class CoursesController < ApplicationController end before_action :require_login, except: [:index, :show, :students, :teachers, :board_list, :mine, :all_course_groups, - :left_banner, :top_banner, :informs, :online_learning, :course_groups] + :left_banner, :top_banner, :informs, :online_learning, :course_groups, :search_slim] before_action :check_account, only: [:new, :create, :apply_to_join_course, :join_excellent_course] before_action :check_auth, except: [:index, :show, :students, :teachers, :board_list, :mine, :all_course_groups, :left_banner, :top_banner, :apply_to_join_course, :exit_course, :course_groups] diff --git a/app/controllers/weapps/shixun_lists_controller.rb b/app/controllers/weapps/shixun_lists_controller.rb index 4db1e171f..d4fc8e8e7 100644 --- a/app/controllers/weapps/shixun_lists_controller.rb +++ b/app/controllers/weapps/shixun_lists_controller.rb @@ -1,5 +1,4 @@ class Weapps::ShixunListsController < ApplicationController - before_action :require_login def index results = Weapps::ShixunSearchService.call(search_params, current_laboratory) diff --git a/app/controllers/weapps/subjects_controller.rb b/app/controllers/weapps/subjects_controller.rb index ab578e5e1..e5c3eb316 100644 --- a/app/controllers/weapps/subjects_controller.rb +++ b/app/controllers/weapps/subjects_controller.rb @@ -1,5 +1,5 @@ class Weapps::SubjectsController < Weapps::BaseController - before_action :require_login + before_action :require_login, except: [:index, :show] before_action :find_subject, except: [:index] # 首页