From 156b26869920b7394730b818ca037e6d7ac5386b Mon Sep 17 00:00:00 2001 From: Ben Mills Date: Fri, 11 Dec 2009 00:34:32 -0700 Subject: [PATCH] Only admins should see bookmarks#edit link --- app/views/bookmarks/show.html.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/bookmarks/show.html.erb b/app/views/bookmarks/show.html.erb index 7b96641..7df1802 100644 --- a/app/views/bookmarks/show.html.erb +++ b/app/views/bookmarks/show.html.erb @@ -4,7 +4,9 @@
  • Bookmarks
  • <% end %> <% content_for(:actions) do %> +<% if admin? %>
  • <%= link_to 'Edit', edit_bookmark_path(@bookmark) %>
  • +<% end %>
  • <%= link_to 'Back', :back %>
  • <% end %>