修改require_login
This commit is contained in:
parent
33849e3741
commit
30f2a47069
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue