mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-24 05:35:46 +08:00
merge develop
This commit is contained in:
@@ -12,7 +12,7 @@ class OwnersController < ApplicationController
|
|||||||
|
|
||||||
def show
|
def show
|
||||||
@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_ok(type: 'User') unless @owner.present?
|
||||||
# 组织
|
# 组织
|
||||||
if @owner.is_a?(Organization)
|
if @owner.is_a?(Organization)
|
||||||
return render_forbidden("没有查看组织的权限") if org_limited_condition || org_privacy_condition
|
return render_forbidden("没有查看组织的权限") if org_limited_condition || org_privacy_condition
|
||||||
|
|||||||
Reference in New Issue
Block a user