summaryrefslogtreecommitdiff
path: root/app/views/groups/_projects.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-04 18:26:49 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-04 18:26:49 -0800
commit7b9b9f704eb1a14d6f943cc4d37d493a6cb8fde3 (patch)
treeb32145dc4b030e229cd6707ba5487aed100facb6 /app/views/groups/_projects.html.haml
parent65105ff3bbe66363d4c922913dbc8c9514f1485c (diff)
downloadgitlab-ce-7b9b9f704eb1a14d6f943cc4d37d493a6cb8fde3.tar.gz
Fix project create link on group page
Diffstat (limited to 'app/views/groups/_projects.html.haml')
-rw-r--r--app/views/groups/_projects.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/groups/_projects.html.haml b/app/views/groups/_projects.html.haml
index 0dfd398f54d..6f53e125c47 100644
--- a/app/views/groups/_projects.html.haml
+++ b/app/views/groups/_projects.html.haml
@@ -2,7 +2,7 @@
.panel-heading.clearfix
.input-group
= search_field_tag :filter_projects, nil, placeholder: 'Filter by name', class: 'projects-list-filter form-control'
- - if current_user.can_create_project?
+ - if can? current_user, :create_projects, @group
.input-group-addon.dash-new-project
= link_to new_project_path(namespace_id: @group.id) do
%strong New project