Skip to content

Commit

Permalink
Update users.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mboudet authored Jan 10, 2025
1 parent a515940 commit 98af278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ router.put('/user/:id/unsubscribe', async function(req, res) {
let session_user = null;
let isadmin = false;
try {
let user = await dbsrv.mongo_users().findOne({ _id: req.locals.logInfo.id });
session_user = await dbsrv.mongo_users().findOne({ _id: req.locals.logInfo.id });
isadmin = await rolsrv.is_admin(session_user);
} catch (e) {
logger.error(e);
Expand Down

0 comments on commit 98af278

Please sign in to comment.