diff options
author | Stan Hu <stanhu@gmail.com> | 2016-01-10 20:46:57 -0800 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2016-01-10 20:46:57 -0800 |
commit | 1587d57197fa1d04128223af29c2385a2137628f (patch) | |
tree | 751b78e6697d3de8a7cb2484f627bd43e4c154b9 | |
parent | 8aac39d8362442823cc3eb96fcfcacc9abf54257 (diff) | |
download | gitlab-ce-1587d57197fa1d04128223af29c2385a2137628f.tar.gz |
Check for current user
-rw-r--r-- | app/views/groups/show.html.haml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/groups/show.html.haml b/app/views/groups/show.html.haml index 5511d8272ab..48a544fc834 100644 --- a/app/views/groups/show.html.haml +++ b/app/views/groups/show.html.haml @@ -9,7 +9,8 @@ .cover-controls - if @group && can?(current_user, :admin_group, @group) = link_to icon('pencil'), edit_group_path(@group), class: 'btn' - = link_to icon('rss'), group_path(@group, { format: :atom, private_token: current_user.private_token }), title: "Feed", class: 'btn rss-btn' + - if current_user + = link_to icon('rss'), group_path(@group, { format: :atom, private_token: current_user.private_token }), title: "Feed", class: 'btn rss-btn' .avatar-holder = link_to group_icon(@group), target: '_blank' do |