From c05a64e1f82ef0220725800d10fcc7694a3a1596 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Mon, 18 Nov 2019 15:42:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E7=9A=84=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/weapps/courses_controller.rb | 2 +- app/controllers/weapps/homes_controller.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/weapps/courses_controller.rb b/app/controllers/weapps/courses_controller.rb index f1edc191c..a81446cea 100644 --- a/app/controllers/weapps/courses_controller.rb +++ b/app/controllers/weapps/courses_controller.rb @@ -1,5 +1,5 @@ class Weapps::CoursesController < Weapps::BaseController - # before_action :require_wechat_login! + before_action :require_login before_action :teacher_allowed, except: [:create, :show, :shixun_homework_category] def create diff --git a/app/controllers/weapps/homes_controller.rb b/app/controllers/weapps/homes_controller.rb index a99bb15c2..00b955f1b 100644 --- a/app/controllers/weapps/homes_controller.rb +++ b/app/controllers/weapps/homes_controller.rb @@ -1,5 +1,5 @@ class Weapps::HomesController < Weapps::BaseController - before_action :require_wechat_login! + before_action :require_login def show # banner