禁止pr访问标识

This commit is contained in:
xxqfamous 2023-06-07 11:45:50 +08:00
parent aad2db5c5b
commit a6fa3f9354
1 changed files with 1 additions and 0 deletions

View File

@ -4,6 +4,7 @@ json.issue_versions @project_versions
json.issue_priories @project_priories
json.project_author @project.owner.try(:show_real_name)
json.project_name @project.try(:name)
json.disable_pr_vew @project.pr_view_admin? && !@project.manager?(current_user)
json.members do
json.array! @project_members.to_a.each do |user|
json.id user.id