Fix monitoring UI

This commit is contained in:
Sven laptop
2026-09-23 17:23:04 +02:00
parent 39b0b07a77
commit 89e4f90fc3
+1 -1
View File
@@ -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) });
}