diff --git a/app/controllers/owners_controller.rb b/app/controllers/owners_controller.rb index bc4be96c8..c00e4aca0 100644 --- a/app/controllers/owners_controller.rb +++ b/app/controllers/owners_controller.rb @@ -11,6 +11,8 @@ class OwnersController < ApplicationController end def show + return render_not_found unless @user.present? + @owner = Owner.find_by(login: params[:id]) || Owner.find_by(id: params[:id]) return render_ok(type: 'User') unless @owner.present? # 组织