Skip to content
Snippets Groups Projects
Commit 8a024494 authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Do not show issue move form unless user can move

parent 8d1b7f95
No related branches found
No related tags found
1 merge request!2831Ability to move issue to another project
Loading
@@ -67,7 +67,7 @@
Loading
@@ -67,7 +67,7 @@
- if can? current_user, :admin_label, issuable.project - 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 = 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 %hr
.form-group .form-group
= f.label :move_to_project_id, 'Move', class: 'control-label' = f.label :move_to_project_id, 'Move', class: 'control-label'
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment