summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2015-08-21 16:37:09 +0000
committerRobert Speicher <robert@gitlab.com>2015-08-21 16:37:09 +0000
commit1346756f74e8c15c8e67ec47f3315612b97fb3a1 (patch)
tree60348c5f8c9dcb92923bf73634f6282ff1d52f32 /app
parentf5b3bf84ad10a03c58c161e84ef919661c84267c (diff)
parent77e508d8fd7a915f5ae221f5e4d6022560398a9e (diff)
downloadgitlab-ce-1346756f74e8c15c8e67ec47f3315612b97fb3a1.tar.gz
Merge branch 'fix-fork-mr-labels' into 'master'
Fix bug where non-project members of the target project could set labels on new merge requests. Fixes #2292. See merge request !1180
Diffstat (limited to 'app')
-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