Commit b8225324 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Hide group sidebar menu if user cant access it

parent 66840f03
......@@ -12,6 +12,7 @@
= icon('dashboard fw')
%span
Group
- if can?(current_user, :read_group, @group)
- if current_user
= nav_link(controller: [:group, :milestones]) do
= link_to group_milestones_path(@group), title: 'Milestones', data: {placement: 'right'} do
......
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