only show Add New List if user has permission

This commit is contained in:
Emi Matchu 2011-07-29 13:29:32 -04:00
parent d893b0ab41
commit 811d6df697

View file

@ -52,7 +52,8 @@
Items #{closet_hanger_subject} #{closet_hanger_verb(owned)} Items #{closet_hanger_subject} #{closet_hanger_verb(owned)}
%span.toggle.show show %span.toggle.show show
%span.toggle.hide hide %span.toggle.hide hide
= link_to_add_closet_list 'Add new list', :owned => owned, :class => 'add-closet-list' - unless public_perspective?
= link_to_add_closet_list 'Add new list', :owned => owned, :class => 'add-closet-list'
.closet-hangers-group-content .closet-hangers-group-content
= render_closet_lists(@closet_lists_by_owned[owned]) = render_closet_lists(@closet_lists_by_owned[owned])
= render_unlisted_closet_hangers(owned) = render_unlisted_closet_hangers(owned)