修改bug
This commit is contained in:
parent
8a045f0100
commit
6e364e19b6
|
@ -14,7 +14,7 @@ class Admins::BaseController < ApplicationController
|
|||
private
|
||||
|
||||
def require_login
|
||||
User.current = User.find 1
|
||||
# User.current = User.find 1
|
||||
return if User.current.logged?
|
||||
|
||||
redirect_to "/login?back_url=#{CGI::escape(request.fullpath)}"
|
||||
|
|
Loading…
Reference in New Issue