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

@@ -51,7 +51,7 @@
<menu id="post-sections">
<li><a href="#comments">Comments</a></li>
<% if Danbooru.config.can_user_see_post?(CurrentUser.user, @post) %>
<% if CurrentUser.is_member? && Danbooru.config.can_user_see_post?(CurrentUser.user, @post) %>
<li><a href="#edit" id="post-edit-link">Edit</a></li>
<% end %>
<li><a href="#share">Share</a></li>
@@ -65,7 +65,7 @@
<%= render :partial => "notes/note", :collection => @post.notes.active %>
</section>
<% if Danbooru.config.can_user_see_post?(CurrentUser.user, @post) %>
<% if CurrentUser.is_member? && Danbooru.config.can_user_see_post?(CurrentUser.user, @post) %>
<section id="edit" style="display: none;">
<%= render "posts/partials/show/edit", :post => @post %>
</section>