FIX 开放平台管理员可以访问所有团队信息
This commit is contained in:
parent
0bd6621821
commit
dcd4457cf5
|
@ -21,7 +21,7 @@ class Organizations::BaseController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def team_not_found_condition
|
def team_not_found_condition
|
||||||
@team.team_users.where(user_id: current_user.id).blank? && !@organization.is_owner?(current_user.id)
|
!current_user&.admin? && @team.team_users.where(user_id: current_user.id).blank? && !@organization.is_owner?(current_user.id)
|
||||||
end
|
end
|
||||||
|
|
||||||
def user_mark
|
def user_mark
|
||||||
|
@ -31,4 +31,4 @@ class Organizations::BaseController < ApplicationController
|
||||||
def project_mark
|
def project_mark
|
||||||
params[:repo_name] || params[:id]
|
params[:repo_name] || params[:id]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue