added a comment

This commit is contained in:
mrjvs 2018-11-20 13:24:23 +01:00
parent 1a2e6c1c9c
commit 204a3f2a11

View File

@ -19,7 +19,7 @@ function adminAuthNeeded(req, res, next) {
// middleware to use if pnid authentication is required
function pnidAuthNeeded(req, res, next) {
if (req.isAuthenticated() && !req.user.role) {
if (req.isAuthenticated() && !req.user.role) { // having no role means its a normal account. only admin accounts have roles
return next();
} else {
apiHelper.sendApiAuthError(res);