mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 20:00:49 +08:00
修复:处理owners .json后缀
This commit is contained in:
@@ -11,7 +11,8 @@ class OwnersController < ApplicationController
|
||||
end
|
||||
|
||||
def show
|
||||
@owner = Owner.find_by(login: params[:id]) || Owner.find_by(id: params[:id])
|
||||
login = params[:id].to_s[0..-6]
|
||||
@owner = Owner.find_by(login: login) || Owner.find_by(id: login)
|
||||
clear_user_cookie unless @owner.present?
|
||||
return render_not_found unless @owner.present?
|
||||
# 组织
|
||||
|
||||
Reference in New Issue
Block a user