Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Meteor.publishComposite 'catalog',->
- if @userId? and Roles.userIsInRole @userId, ['admin']
- filter = {}
- else
- filter =
- isPublished: true
- find: ->
- Bands.find
- filter
- children:
- find:(band)->
- bandid = band_id
- filter
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement