mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 12:16:37 -04:00
18 lines
No EOL
400 B
JavaScript
18 lines
No EOL
400 B
JavaScript
Meteor.publish('settings', function() {
|
|
var options = {};
|
|
if(!isAdminById(this.userId)){
|
|
options = _.extend(options, {
|
|
fields: {
|
|
mailChimpAPIKey: false,
|
|
mailChimpListId: false
|
|
}
|
|
});
|
|
}
|
|
return Settings.find({}, options);
|
|
});
|
|
|
|
Meteor.publish('invites', function(){
|
|
if(canViewById(this.userId)){
|
|
return Invites.find({invitingUserId:this.userId});
|
|
}
|
|
}); |