Commit 1d217381 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Show activity/projects depends on access

parent 4e1c6019
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
= render 'shared/show_aside' = render 'shared/show_aside'
- if can?(current_user, :read_group, @group)
.row .row
%section.activities.col-md-7 %section.activities.col-md-7
.hidden-xs .hidden-xs
...@@ -32,6 +33,9 @@ ...@@ -32,6 +33,9 @@
.content_list .content_list
= spinner = spinner
- if @projects.any?
%aside.side.col-md-5 %aside.side.col-md-5
= render "projects", projects: @projects = render "projects", projects: @projects
- else
%p
= icon('lock')
This is a private group
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