remove links that are not usable by anon users, fixes #977
This commit is contained in:
@@ -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 %>
|
||||
|
||||
Reference in New Issue
Block a user