Require user to have a webmaker account before creating events.

This commit is contained in:
Hike Danakian 2013-06-12 18:21:33 -07:00
Родитель 8bc1553c96
Коммит 78a6a2c208
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -38,7 +38,8 @@ module.exports = function (init) {
if (!(event.organizer = req.session.email))
return res.reply(401, 'Log in to create Events');
event.organizerId = req.session.username;
if (!(event.organizerId = req.session.username))
return res.reply(403, 'Create an account first');
var picture = event.picture;
delete event.picture;