Skip to content

Commit

Permalink
Link to Error Page (Unauthorised Entry)
Browse files Browse the repository at this point in the history
  • Loading branch information
Silfer committed Apr 1, 2017
1 parent 22c4462 commit 5188fec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions Note.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Controller Lobby --> Error Linking
9 changes: 6 additions & 3 deletions source/controller/lobby.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,20 @@ var enterLobby = function (req, res, next) {
return next();
});
} else {
res.json({ success: false, message: 'The tutor of this tutorial class has not registered with the system.'});
//res.json({ success: false, message: 'The tutor of this tutorial class has not registered with the system.'});
res.redirect('/error');
}
});

} else {
res.json({ success: false, message: 'You are not a member of this tutorial.'});
//res.json({ success: false, message: 'You are not a member of this tutorial.'});
res.redirect('/error');
}
});

} else {
res.json({success: false, message: 'Please access lobby from dashboard!'});
//res.json({success: false, message: 'Please access lobby from dashboard!'});
res.redirect('/error');
}
}

Expand Down

0 comments on commit 5188fec

Please sign in to comment.