From 89e4f90fc33c29fdb7850141aabc1647195698e0 Mon Sep 17 00:00:00 2001 From: Sven laptop Date: Wed, 23 Sep 2026 17:23:04 +0200 Subject: [PATCH] Fix monitoring UI --- error_log_api/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/error_log_api/index.js b/error_log_api/index.js index b27b49e..7dda828 100644 --- a/error_log_api/index.js +++ b/error_log_api/index.js @@ -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) }); }