Vulcan/packages/telescope-notifications/lib/herald.js

16 lines
480 B
JavaScript
Raw Normal View History

// send emails every second when in dev environment
if (Meteor.absoluteUrl().indexOf('localhost') !== -1)
Herald.settings.queueTimer = 1000;
Meteor.startup(function () {
Herald.collection.deny({
update: function(){ return !Users.can.editById; },
remove: function(){ return !Users.can.editById; }
});
// disable all email notifications when "emailNotifications" is set to false
Herald.settings.overrides.email = !Settings.get('emailNotifications', true);
});