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/views
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2017-06-08 13:44:33 +0300
committerSean McGivern <sean@gitlab.com>2017-06-08 13:44:33 +0300
commit737d194c0826beb7783c34e982cea673e3f6a61a (patch)
tree6751dab5f8a4a3ba8db7fda6b09ef10a8f2bc2a1 /app/views
parent8ce11fc388bc168368b1e0a65659bb45c76a4a08 (diff)
Allow group reporters to promote labels
They can admin group labels anyway, we weren't checking the more specific permission.
Diffstat (limited to 'app/views')
-rw-r--r--app/views/shared/_label.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/_label.html.haml b/app/views/shared/_label.html.haml
index bd994cdad01..c185e9b73ee 100644
--- a/app/views/shared/_label.html.haml
+++ b/app/views/shared/_label.html.haml
@@ -64,7 +64,7 @@
%a.js-subscribe-button{ data: { url: toggle_subscription_group_label_path(label.group, label) } }
Group level
- - if label.is_a?(ProjectLabel) && label.project.group && can?(current_user, :admin_group, label.project.group)
+ - if label.is_a?(ProjectLabel) && label.project.group && can?(current_user, :admin_label, label.project.group)
= link_to promote_namespace_project_label_path(label.project.namespace, label.project, label), title: "Promote to Group Label", class: 'btn btn-transparent btn-action', data: {confirm: "Promoting this label will make this label available to all projects inside this group. Existing project labels with the same name will be merged. Are you sure?", toggle: "tooltip"}, method: :post do
%span.sr-only Promote to Group
= icon('level-up')