From 0e4bc4d4ce5ecdca0039de5101fd09a2b988008d Mon Sep 17 00:00:00 2001 From: jingquan huang Date: Mon, 15 Jul 2019 16:15:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B5=84=E6=96=99=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=9D=83=E9=99=90=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/users/base_account_controller.rb | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/app/controllers/users/base_account_controller.rb b/app/controllers/users/base_account_controller.rb index 5c474517d..0d6bb24ec 100644 --- a/app/controllers/users/base_account_controller.rb +++ b/app/controllers/users/base_account_controller.rb @@ -1,15 +1,8 @@ class Users::BaseAccountController < Users::BaseController - before_action :require_login, :check_auth + before_action :require_login def observed_user @_observed_user ||= (User.find_by_id(params[:account_id]) || User.find_by_login(params[:account_id])) end - private - - def require_login - return if User.current.logged? - - tip_exception(401, "..") - end end