say Edit a Copy on outfits#show if it a guest outfit and user is a guest
This commit is contained in:
parent
38907bc2d6
commit
6940e098d3
2 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ module OutfitsHelper
|
|||
outfit = outfit_or_options
|
||||
end
|
||||
query = outfit.to_query
|
||||
query << "&outfit=#{outfit.id}" if outfit.user == current_user
|
||||
query << "&outfit=#{outfit.id}" if user_signed_in? && outfit.user == current_user
|
||||
link_to content, wardrobe_path(:anchor => query), options
|
||||
end
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
- title(@outfit.name || "Shared outfit")
|
||||
= link_to_edit_outfit(@outfit, :class => 'button', :id => 'outfit-wardrobe-link') do
|
||||
Edit
|
||||
- unless @outfit.user == current_user
|
||||
- unless user_signed_in? && @outfit.user == current_user
|
||||
a copy
|
||||
- if @outfit.user_id
|
||||
#outfit-user
|
||||
|
|
Loading…
Reference in a new issue