summaryrefslogtreecommitdiff
path: root/app/views/projects/commit/_commit_box.html.haml
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2018-04-06 16:02:36 +0200
committerBob Van Landuyt <bob@vanlanduyt.co>2018-04-11 10:51:15 +0200
commit12dd2b0cc0cf6dd8dc43ff8b8df8687268ba4af5 (patch)
tree65dd7c5467b931dc1777214dc1416c78add7891a /app/views/projects/commit/_commit_box.html.haml
parent8ad9c4e873f2185e8bbfa6f363db32dbbba27141 (diff)
downloadgitlab-ce-12dd2b0cc0cf6dd8dc43ff8b8df8687268ba4af5.tar.gz
Share collaboration check between view and presenter
Diffstat (limited to 'app/views/projects/commit/_commit_box.html.haml')
-rw-r--r--app/views/projects/commit/_commit_box.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/commit/_commit_box.html.haml b/app/views/projects/commit/_commit_box.html.haml
index aec58a91a71..e391f08acca 100644
--- a/app/views/projects/commit/_commit_box.html.haml
+++ b/app/views/projects/commit/_commit_box.html.haml
@@ -35,7 +35,7 @@
- unless @commit.has_been_reverted?(current_user)
%li.clearfix
= revert_commit_link(@commit, project_commit_path(@project, @commit.id), has_tooltip: false)
- - if can_collaborate_with_project?
+ - if can_collaborate_with_project?(@project)
%li.clearfix
= cherry_pick_commit_link(@commit, project_commit_path(@project, @commit.id), has_tooltip: false)
- if can?(current_user, :push_code, @project)