Fix project create link on group page

This commit is contained in:
Dmitriy Zaporozhets 2015-03-04 18:26:49 -08:00
parent 65105ff3bb
commit 7b9b9f704e
1 changed files with 1 additions and 1 deletions

View File

@ -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