diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-02-22 13:54:21 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-03-17 07:39:15 +0100 |
commit | 8a02449440b0491a056106d693d502252121740f (patch) | |
tree | 4a69c78c987ca82fcdd4fd1806b0034d526c56a2 /app/views/shared/issuable/_form.html.haml | |
parent | 8d1b7f950708a0b759026816fcadb6324b29a208 (diff) | |
download | gitlab-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.haml | 2 |
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' |