account manange not check profile complete

dev_forum
p31729568 5 years ago
parent 86a7a097a2
commit aa4dbf0f06

@ -4,4 +4,12 @@ class Users::BaseAccountController < Users::BaseController
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

Loading…
Cancel
Save