Fix monitoring UI
This commit is contained in:
@@ -58,7 +58,7 @@ function verifyAdmin(req, res, next) {
|
||||
|
||||
try {
|
||||
const payload = jwt.verify(auth.slice(7), JWT_SECRET);
|
||||
if (!payload?.user.isAdmin) {
|
||||
if (!payload?.isAdmin) {
|
||||
return res.status(403).json({ error: toFriendlyError(403) });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user