Vulcan/packages/telescope-notifications/lib/herald.js
2015-10-28 09:32:11 +09:00

15 lines
480 B
JavaScript

// 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);
});