minor
This commit is contained in:
parent
6fdda999f6
commit
a546290460
1 changed files with 1 additions and 1 deletions
|
@ -291,7 +291,7 @@ const eventController = {
|
|||
}
|
||||
const body = req.body
|
||||
const event = await Event.findByPk(body.id)
|
||||
if (!event) return res.sendStatus(404)
|
||||
if (!event) { return res.sendStatus(404) }
|
||||
if (!req.user.is_admin && event.userId !== req.user.id) {
|
||||
return res.sendStatus(403)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue