mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-24 13:45:44 +08:00
fix: not found user return 404
This commit is contained in:
@@ -11,6 +11,8 @@ class OwnersController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def show
|
def show
|
||||||
|
return render_not_found unless @user.present?
|
||||||
|
|
||||||
@owner = Owner.find_by(login: params[:id]) || Owner.find_by(id: params[:id])
|
@owner = Owner.find_by(login: params[:id]) || Owner.find_by(id: params[:id])
|
||||||
# return render_not_found unless @owner.present?
|
# return render_not_found unless @owner.present?
|
||||||
# 组织
|
# 组织
|
||||||
|
|||||||
Reference in New Issue
Block a user