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,6 +52,7 @@
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
- unless public_perspective?
= link_to_add_closet_list 'Add new list', :owned => owned, :class => 'add-closet-list' = 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])