Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
lelemm committed Nov 21, 2024
1 parent 1b57b91 commit 45fa1d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ app.get('/access', validateSessionMiddleware, (req, res) => {
granted: 0,
};

if (!isAdmin(res.locals.user_id) && granted === 0) {
if (granted === 0 && !isAdmin(res.locals.user_id)) {
res.status(403).send({
status: 'error',
reason: 'forbidden',
Expand Down

0 comments on commit 45fa1d5

Please sign in to comment.