diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-12-02 15:00:16 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-12-02 15:00:16 +0100 |
commit | 67c74071a8b63cf905e6c65e9818317a99db9105 (patch) | |
tree | 9f8a355384ae35514c9f9e923f4fd41ade6c0c71 | |
parent | 8b7dd1c1ce9822e0c1d1d126e1c618d1094d0b22 (diff) | |
download | gitlab-ce-67c74071a8b63cf905e6c65e9818317a99db9105.tar.gz |
Add permission check for tag list release notes button
-rw-r--r-- | app/views/projects/tags/_tag.html.haml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/views/projects/tags/_tag.html.haml b/app/views/projects/tags/_tag.html.haml index e2c5178185e..00c0b0b934c 100644 --- a/app/views/projects/tags/_tag.html.haml +++ b/app/views/projects/tags/_tag.html.haml @@ -11,11 +11,12 @@ = strip_gpg_signature(tag.message) .controls - = link_to edit_namespace_project_tag_release_path(@project.namespace, @project, tag.name), class: 'btn-grouped btn' do - = icon("pencil") - - if can? current_user, :download_code, @project + - if can?(current_user, :download_code, @project) = render 'projects/tags/download', ref: tag.name, project: @project + - if can?(current_user, :push_code, @project) + = link_to edit_namespace_project_tag_release_path(@project.namespace, @project, tag.name), class: 'btn-grouped btn has_tooltip', title: "Edit release notes" do + = icon("pencil") - if commit = render 'projects/branches/commit', commit: commit, project: @project - else |