only show Add New List if user has permission
This commit is contained in:
parent
d893b0ab41
commit
811d6df697
1 changed files with 2 additions and 1 deletions
|
@ -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])
|
||||||
|
|
Loading…
Reference in a new issue