Skip to content

Commit

Permalink
Only admins should see bookmarks#edit link
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Mills committed Dec 11, 2009
1 parent 224c278 commit 156b268
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/views/bookmarks/show.html.erb
Expand Up @@ -4,7 +4,9 @@
<li>Bookmarks</li>
<% end %>
<% content_for(:actions) do %>
<% if admin? %>
<li><%= link_to 'Edit', edit_bookmark_path(@bookmark) %></li>
<% end %>
<li class="last"><%= link_to 'Back', :back %></li>
<% end %>

Expand Down

0 comments on commit 156b268

Please sign in to comment.