修改bug

This commit is contained in:
sylor_huang@126.com 2020-04-17 00:31:22 +08:00
parent 8a045f0100
commit 6e364e19b6
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ class Admins::BaseController < ApplicationController
private private
def require_login def require_login
User.current = User.find 1 # User.current = User.find 1
return if User.current.logged? return if User.current.logged?
redirect_to "/login?back_url=#{CGI::escape(request.fullpath)}" redirect_to "/login?back_url=#{CGI::escape(request.fullpath)}"