Commit 7b9b9f70 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix project create link on group page

parent 755bb4576ff1
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment