禁止pr访问标识

This commit is contained in:
xxqfamous 2023-06-07 11:03:49 +08:00
parent 8f51955bd7
commit aad2db5c5b
1 changed files with 1 additions and 0 deletions

View File

@ -10,6 +10,7 @@ json.project_name @project.name
json.project_author @project.owner.try(:login)
json.project_author_name @project.owner.try(:show_real_name)
json.has_created_pull_requests @project.pull_requests.size > 0
json.disable_pr_vew @project.pr_view_admin? && !@project.manager?(current_user)
json.issues do
json.array! @issues.to_a do |issue|