mirror of
https://github.com/PretendoNetwork/website.git
synced 2026-07-01 00:50:42 -05:00
added a comment
This commit is contained in:
parent
1a2e6c1c9c
commit
204a3f2a11
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user