forked from Gitlink/forgeplus
修改find_user_with_id
This commit is contained in:
parent
1a88f6804a
commit
e0a0e6d051
|
@ -682,7 +682,8 @@ class ApplicationController < ActionController::Base
|
|||
|
||||
def find_user_with_id
|
||||
@user = User.find_by_id params[:user_id]
|
||||
render_not_found("未找到’#{params[:login]}’相关的用户") unless @user
|
||||
# render_not_found("未找到’#{params[:login]}’相关的用户") unless @user
|
||||
render_error("未找到相关的用户") unless @user
|
||||
end
|
||||
|
||||
def find_repository
|
||||
|
|
Loading…
Reference in New Issue