summaryrefslogtreecommitdiff
path: root/app/views/shared/issuable
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-08-20 18:32:32 -0700
committerDouwe Maan <douwe@gitlab.com>2015-08-20 18:32:32 -0700
commit77e508d8fd7a915f5ae221f5e4d6022560398a9e (patch)
tree5f84fab8734834d5600ae3cfde9b3374d9e2cec0 /app/views/shared/issuable
parent2de0935e276e45ac0090d32fd345593c2db92a5b (diff)
downloadgitlab-ce-77e508d8fd7a915f5ae221f5e4d6022560398a9e.tar.gz
Fix bug where non-project members of the target project could set labels on new merge requests.fix-fork-mr-labels
Diffstat (limited to 'app/views/shared/issuable')
-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 3489bf3f191..f6b09de3839 100644
--- a/app/views/shared/issuable/_form.html.haml
+++ b/app/views/shared/issuable/_form.html.haml
@@ -38,7 +38,7 @@
.clearfix
.error-alert
%hr
-- if can?(current_user, :"admin_#{issuable.to_ability_name}", @project)
+- if can?(current_user, :"admin_#{issuable.to_ability_name}", issuable.project)
.form-group
.issue-assignee
= f.label :assignee_id, class: 'control-label' do