Added Example Flag
This commit is contained in:
Luke Vella 2015-02-09 20:51:35 +01:00
parent 6877e92a1d
commit 600155a8f1
5 changed files with 10 additions and 5 deletions

View file

@ -9,13 +9,13 @@ var mandrill = require('mandrill-api');
var mandrill_client = new mandrill.Mandrill(app.get('mandrillAPIKey'));
communicator.on('event:create', function(event){
if (!event.creator.allowNotifications && event.isClosed) return;
if (!event.creator.allowNotifications || event.isClosed || event.isExample) return;
sendEmailConfirmation(event);
sendInvites(event);
});
communicator.on('event:update:creator.email', function(event, oldEvent){
if (!event.creator.allowNotifications && event.isClosed) return;
if (!event.creator.allowNotifications || event.isClosed || event.isExample) return;
verifyEmail(event);
});