Skip to content

Commit

Permalink
Edit http codes for forbidden content
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-nebel committed Nov 28, 2023
1 parent ae0954f commit 84049aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/checkAuth.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function checkModuleAccess(req, res, next) {
next();
} else {
const error = generateMessage(10201);
res.status(401).send(error);
res.status(403).send(error);
return error;
}
});
Expand All @@ -91,7 +91,7 @@ function checkCertAccess(req, res, next) {
next();
} else {
const error = generateMessage(10201);
res.status(401).send(error);
res.status(403).send(error);
return error;
}
});
Expand Down

0 comments on commit 84049aa

Please sign in to comment.