This commit is contained in:
lesion
2022-03-10 13:12:37 +01:00
parent d430417af2
commit 9a1f650a3b

View File

@@ -30,7 +30,7 @@ const Auth = {
},
isAdmin (req, res, next) {
if (res.locals.users && res.locals.user.is_admin) {
if (res.locals.user && res.locals.user.is_admin) {
next()
} else {
res.sendStatus(403)