diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-13 12:09:22 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-13 12:09:22 +0000 |
commit | 286fe61013674fe2d245ffc8d2233baf09923e70 (patch) | |
tree | 2037291f5863105e54e75be056b49f7d62007cae /app/helpers | |
parent | 4cb5e5011abfe8d50ac3a7ebd0018c563c6d7af4 (diff) | |
download | gitlab-ce-286fe61013674fe2d245ffc8d2233baf09923e70.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/releases_helper.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/helpers/releases_helper.rb b/app/helpers/releases_helper.rb index c4fe40a0875..6fbef800faa 100644 --- a/app/helpers/releases_helper.rb +++ b/app/helpers/releases_helper.rb @@ -17,7 +17,9 @@ module ReleasesHelper project_id: @project.id, illustration_path: illustration, documentation_path: help_page - } + }.tap do |data| + data[:new_release_path] = new_project_tag_path(@project) if can?(current_user, :create_release, @project) + end end def data_for_edit_release_page |