Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2018-10-16 22:20:19 +0300
committerDouwe Maan <douwe@gitlab.com>2018-10-16 22:20:19 +0300
commit69c7d48e0df4005b7dab9609384d372056f85cf3 (patch)
treed9139122d022a3a580e6cbeacd20a19221e72ac7 /app
parent4f475b812512dfa0029c7995d1fc3057e6b0c648 (diff)
parentc6ac04e4da60707a7bf13c796f95844e5409f451 (diff)
Merge branch 'sh-fix-commit-signatures-error' into 'master'
Fix commit signature error when project is disabled Closes #50903 See merge request gitlab-org/gitlab-ce!22344
Diffstat (limited to 'app')
-rw-r--r--app/views/projects/show.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/show.html.haml b/app/views/projects/show.html.haml
index aba289c790f..283031b06da 100644
--- a/app/views/projects/show.html.haml
+++ b/app/views/projects/show.html.haml
@@ -8,8 +8,8 @@
= render partial: 'flash_messages', locals: { project: @project }
-- if @project.repository_exists? && !@project.empty_repo?
- - signatures_path = namespace_project_signatures_path(namespace_id: @project.namespace.full_path, project_id: @project.path, id: @project.default_branch)
+- if !@project.empty_repo? && can?(current_user, :download_code, @project)
+ - signatures_path = project_signatures_path(@project, @project.default_branch)
.js-signature-container{ data: { 'signatures-path': signatures_path } }
%div{ class: [container_class, ("limit-container-width" unless fluid_layout)] }