Browse Source

禁止pr访问标识

pull/343/head
xxqfamous 3 years ago
parent
commit
aad2db5c5b
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/views/pull_requests/index.json.jbuilder

+ 1
- 0
app/views/pull_requests/index.json.jbuilder 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|


Loading…
Cancel
Save