diff --git a/app/views/photos/show.html.haml b/app/views/photos/show.html.haml index a3f0915f0..effb40f33 100644 --- a/app/views/photos/show.html.haml +++ b/app/views/photos/show.html.haml @@ -14,8 +14,9 @@ | = link_to_next @photo, @album - %p - = link_to "Destroy", @photo, :confirm => 'Are you sure?', :method => :delete + -if mine?(@photo) + %p + = link_to "Destroy", @photo, :confirm => 'Are you sure?', :method => :delete %p = link_to "<< back to album", album_path(@album)