Skip to content

Commit

Permalink
Correction temporaire de la validation des images
Browse files Browse the repository at this point in the history
Correction temporaire de la validation des images lors de la gestion des évènements.
  • Loading branch information
natalie-natsu committed Jun 25, 2015
1 parent be74add commit ca9a61c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/methods/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,11 @@ function editEventValidation (values) {
throw new Meteor.Error(400, 'Ce code postal est invalide');
if(!values.comment)
throw new Meteor.Error(400, 'Ce commentaire est invalide');
if(!values.picture)
throw new Meteor.Error(400, 'L\'image n\'a pas été upload ou n\'est pas valide');
}

function addEventValidation (values) {
editEventValidation(values);

if(!values.picture)
throw new Meteor.Error(400, 'L\'image n\'a pas été upload ou n\'est pas valide');
}

0 comments on commit ca9a61c

Please sign in to comment.