Fixed typo

This commit is contained in:
Daniel García Aubert 2016-03-14 11:18:32 +01:00
parent a8340fef68
commit 178345ab12

View File

@ -72,8 +72,8 @@ NamedMapsAdminController.prototype.update = function(req, res) {
}, },
function updateTemplate(err, authenticated) { function updateTemplate(err, authenticated) {
assert.ifError(err); assert.ifError(err);
ifUnauthenticated(authenticated, 'Only authenticated users can get template maps'); ifUnauthenticated(authenticated, 'Only authenticated user can update templated maps');
ifInvalidContentType(req, 'template POST data must be of type application/json'); ifInvalidContentType(req, 'template PUT data must be of type application/json');
template = req.body; template = req.body;
tpl_id = templateName(req.params.template_id); tpl_id = templateName(req.params.template_id);