Require user to have a webmaker account before creating events.
This commit is contained in:
Родитель
8bc1553c96
Коммит
78a6a2c208
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче