This commit is contained in:
2019-07-17 03:21:49 -04:00
parent d5b34dc81f
commit 77f836842b
10 changed files with 145 additions and 4 deletions

View File

@@ -54,7 +54,7 @@ module.exports = function (server, auth) {
);
}
res.send(doc);
res.send(req.user.isManager ? doc : doc.toProfileJSON());
next();
});
});