summaryrefslogtreecommitdiff
path: root/app/views/shared/issuable/_form.html.haml
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-02-22 13:54:21 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-03-17 07:39:15 +0100
commit8a02449440b0491a056106d693d502252121740f (patch)
tree4a69c78c987ca82fcdd4fd1806b0034d526c56a2 /app/views/shared/issuable/_form.html.haml
parent8d1b7f950708a0b759026816fcadb6324b29a208 (diff)
downloadgitlab-ce-8a02449440b0491a056106d693d502252121740f.tar.gz
Do not show issue move form unless user can move
Diffstat (limited to 'app/views/shared/issuable/_form.html.haml')
-rw-r--r--app/views/shared/issuable/_form.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/issuable/_form.html.haml b/app/views/shared/issuable/_form.html.haml
index 22540cbfe69..bb0252ba3de 100644
--- a/app/views/shared/issuable/_form.html.haml
+++ b/app/views/shared/issuable/_form.html.haml
@@ -67,7 +67,7 @@
- if can? current_user, :admin_label, issuable.project
= link_to 'Create new label', new_namespace_project_label_path(issuable.project.namespace, issuable.project), target: :blank
-- if issuable.is_a?(Issue)
+- if issuable.is_a?(Issue) && can?(current_user, :move_issue, issuable.project)
%hr
.form-group
= f.label :move_to_project_id, 'Move', class: 'control-label'