mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-22 20:55:46 +08:00
fix: not found user return 404
This commit is contained in:
@@ -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?
|
||||
# 组织
|
||||
|
||||
Reference in New Issue
Block a user