working on issue #305

parent b7d121b4
......@@ -651,10 +651,9 @@ module.exports = {
Returns all the students associated to this supervisor
*/
students: function (req, res) {
if (!req.params.id) {
if (!req.params.id)
return res.badRequest('No supervisor defined');
});
}
Supervisor.students(req.params.id, function (err, stus) {
if (err) return res.serverError(err);
return res.ok(stus);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment