Removing destroy link from albums that are not yours
This commit is contained in:
parent
79aa12ee67
commit
1c0d5f6e6b
1 changed files with 3 additions and 2 deletions
|
|
@ -3,7 +3,8 @@
|
|||
- for photo in @album_photos
|
||||
= link_to (image_tag photo.image.url(:thumb_medium)), object_path(photo)
|
||||
|
||||
%p
|
||||
= link_to "Destroy", @album, :confirm => 'Are you sure?', :method => :delete
|
||||
-if mine? @album
|
||||
%p
|
||||
= link_to "Destroy", @album, :confirm => 'Are you sure?', :method => :delete
|
||||
|
|
||||
= link_to "View All", albums_path
|
||||
|
|
|
|||
Loading…
Reference in a new issue