This commit is contained in:
Lukian LEIZOUR 2024-06-06 14:20:48 +02:00
parent 8aa73db4ce
commit fc2fdf8007

View file

@ -19,7 +19,7 @@ router.post('/', async (req, res) => {
return res.status(400).send({error: "token expired"});
}
if (!user.admin) {
if (!user.user.admin) {
return res.status(400).send({error: "unauthorized"});
}
} catch {