Skip to content

Commit

Permalink
Only show public and viewonly playlists
Browse files Browse the repository at this point in the history
  • Loading branch information
pepf committed Sep 22, 2014
1 parent 206c3cf commit 9aeec88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions both/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ Router.map(function() {
this.route('playlists', {
data: {
playlists: function() {
return Playlists.find({},{sort: {createdAt: -1}, limit: 5});
return Playlists.find({privacy:{$ne:'private'}},{sort: {createdAt: -1}, limit: 5});
}
}
});

this.route('allplaylists', {
data: {
playlists: function() {
return Playlists.find({},{sort: {createdAt: -1}});
return Playlists.find({privacy:{$ne:'private'}},{sort: {createdAt: -1}});
}
}
});
Expand Down

0 comments on commit 9aeec88

Please sign in to comment.