diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-03-17 11:11:22 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-03-17 11:48:51 +0100 |
commit | b9036ba61012e6723426f98171a2c111abb0bae5 (patch) | |
tree | a249a06e9e80a7db1f2ae53dc8ae99402492eef7 /app/views | |
parent | dda7f9635fe96eba52110979914ff966188f6e8b (diff) | |
download | gitlab-ce-b9036ba61012e6723426f98171a2c111abb0bae5.tar.gz |
Prevent issue move if issue has been already moved
Diffstat (limited to 'app/views')
-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 d3eabe9ea64..5276afec1ca 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) && can?(current_user, :admin_issue, issuable.project) +- if issuable.is_a?(Issue) && issuable.can_move?(current_user) %hr .form-group = label_tag :move_to_project_id, 'Move', class: 'control-label' |