summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-10-04 16:10:44 +0100
committerPhil Hughes <me@iamphill.com>2016-10-06 11:00:01 +0100
commit905af8471691fc0bb991aca5276185796dbe28c9 (patch)
treef27a6e9121985d0ecfd1da7dbfd90680bbbd070a
parent3397a8a6b5022c10701b6d9ef9b045ca05caf829 (diff)
downloadgitlab-ce-905af8471691fc0bb991aca5276185796dbe28c9.tar.gz
Changed new issue button permissions
This is because contributors can't create issues with labels
-rw-r--r--app/views/projects/boards/components/_board.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/boards/components/_board.html.haml b/app/views/projects/boards/components/_board.html.haml
index 5cbc4eadcd0..4d7d8319204 100644
--- a/app/views/projects/boards/components/_board.html.haml
+++ b/app/views/projects/boards/components/_board.html.haml
@@ -15,7 +15,7 @@
.board-issue-count-holder.pull-right.clearfix{ "v-if" => "list.type !== 'blank'" }
%span.board-issue-count.pull-left{ ":class" => "{ 'has-btn': list.type !== 'done' }" }
{{ list.issuesSize }}
- - if can? current_user, :create_issue, @project
+ - if can?(current_user, :admin_issue, @project)
%button.btn.btn-small.btn-default.pull-right.has-tooltip{ type: "button",
"@click" => "showNewIssueForm",
"v-if" => "list.type !== 'done'",