remove links that are not usable by anon users, fixes #977

This commit is contained in:
albert
2013-03-22 10:18:05 -07:00
parent b21dcc47a7
commit 8bfd7b408f
9 changed files with 31 additions and 19 deletions

View File

@@ -21,8 +21,10 @@
<div class="clearfix"></div>
<div class="new-comment">
<p><%= link_to "Post comment", new_comment_path, :class => "expand-comment-response" %></p>
<%= render "comments/partials/new/form", :post => post %>
</div>
<% if CurrentUser.is_member? %>
<div class="new-comment">
<p><%= link_to "Post comment", new_comment_path, :class => "expand-comment-response" %></p>
<%= render "comments/partials/new/form", :post => post %>
</div>
<% end %>
</div>