diff options
author | GitLab Release Tools Bot <robert+release-tools@gitlab.com> | 2019-04-02 10:48:30 +0300 |
---|---|---|
committer | GitLab Release Tools Bot <robert+release-tools@gitlab.com> | 2019-04-02 10:48:30 +0300 |
commit | 3e4c2b0427d70e920758e9c8f71ac43060d8c509 (patch) | |
tree | 0ef4e37b03a2a4de81b240bd63c0d31fa1428dd7 /app/views | |
parent | b122be5ed55e3898196fb21e47fff40eb7dd6e0c (diff) | |
parent | 727ec95528c3b928992406e570427728e7186fd4 (diff) |
Merge branch 'security-56224' into 'master'
Fix related branches visible in issues for guests
See merge request gitlab/gitlabhq!2996
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/projects/issues/show.html.haml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/projects/issues/show.html.haml b/app/views/projects/issues/show.html.haml index 3a674da6e87..819d3c4ec76 100644 --- a/app/views/projects/issues/show.html.haml +++ b/app/views/projects/issues/show.html.haml @@ -80,8 +80,9 @@ #merge-requests{ data: { url: referenced_merge_requests_project_issue_path(@project, @issue) } } // This element is filled in using JavaScript. - #related-branches{ data: { url: related_branches_project_issue_path(@project, @issue) } } - // This element is filled in using JavaScript. + - if can?(current_user, :download_code, @project) + #related-branches{ data: { url: related_branches_project_issue_path(@project, @issue) } } + // This element is filled in using JavaScript. .content-block.emoji-block.emoji-block-sticky .row |