From 1587d57197fa1d04128223af29c2385a2137628f Mon Sep 17 00:00:00 2001 From: Stan Hu Date: Sun, 10 Jan 2016 20:46:57 -0800 Subject: [PATCH] Check for current user --- app/views/groups/show.html.haml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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