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

@@ -20,10 +20,10 @@
<% end %>
<menu>
<li>ID: <%= forum_post.id %></li>
<% if @forum_topic %>
<% if CurrentUser.is_member? && @forum_topic %>
<li><%= link_to "Quote", new_forum_post_path(:post_id => forum_post.id), :method => :get, :remote => true %></li>
<% end %>
<% if CurrentUser.user.is_janitor? %>
<% if CurrentUser.is_janitor? %>
<% if forum_post.is_deleted %>
<li><%= link_to "Undelete", undelete_forum_post_path(forum_post.id), :method => :post, :remote => true %></li>
<% else %>