fix: not found user return 404
This commit is contained in:
parent
9cd18397f7
commit
ca3c564529
|
@ -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_not_found unless @owner.present?
|
||||
# 组织
|
||||
|
|
Loading…
Reference in New Issue