commit
This commit is contained in:
parent
8aa73db4ce
commit
fc2fdf8007
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ router.post('/', async (req, res) => {
|
||||||
return res.status(400).send({error: "token expired"});
|
return res.status(400).send({error: "token expired"});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!user.admin) {
|
if (!user.user.admin) {
|
||||||
return res.status(400).send({error: "unauthorized"});
|
return res.status(400).send({error: "unauthorized"});
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue