Script:
if ('admin'== currentUser.roles){
return Meteor.users.find({"profile.verify": "1"});
}else{
return Collection.find({ userid: Meteor.userId()});
}
}
Script:
if ('admin'== currentUser.roles){
return Meteor.users.find({"profile.verify": "1"});
}else{
return Collection.find({ userid: Meteor.userId()});
}
}