Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Filters psudo code
Meteor.methods({
'sabotage'
});
Meteor.filters({
'checkIsABeastieBoy'
});
function checkIsABeastieBoy(args) {
if(args.user == 'Yauch') {
return true;
}
//Users here can also play with args here if they like too: args.user = 'so so so..'
//even returning anything but true causes the meteor method not to be called.
}
function sabotage() {
//destroy the musical planet
}
//CLIENT
Meteor.call('sabotage', {user: 'Yauch'});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment