From 3d7a81d70e71bd9a1c4464d7b58f259323bdafef Mon Sep 17 00:00:00 2001 From: cialloo Date: Sat, 25 Oct 2025 20:27:02 +0800 Subject: [PATCH] Update super admin check to use correct SteamID for authorization --- app/internal/middleware/superadminauthmiddleware.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/internal/middleware/superadminauthmiddleware.go b/app/internal/middleware/superadminauthmiddleware.go index f8fe882..04962eb 100644 --- a/app/internal/middleware/superadminauthmiddleware.go +++ b/app/internal/middleware/superadminauthmiddleware.go @@ -65,8 +65,8 @@ func (m *SuperAdminAuthMiddleware) Handle(next http.HandlerFunc) http.HandlerFun return } - // Check if user is super admin (steamId must be "1234567") - if claims.SteamID != "1234567" { + // Check if user is super admin (steamId must be "76561198281616762") + if claims.SteamID != "76561198281616762" { http.Error(w, "Forbidden: Super admin access required", http.StatusForbidden) return }