修改require_login

This commit is contained in:
sylor_huang@126.com 2020-03-23 15:42:53 +08:00
parent 33849e3741
commit 30f2a47069
1 changed files with 3 additions and 0 deletions

View File

@ -233,6 +233,9 @@ class ApplicationController < ActionController::Base
# 未授权的捕捉407弹试用申请弹框
def require_login
#6.13 -hs
Rails.logger.info("########____________________########{User.current.login}")
Rails.logger.info("########____________________########{User.current.logged?}")
tip_exception(401, "请登录后再操作") unless User.current.logged?
end