Update super admin check to use correct SteamID for authorization
All checks were successful
CI - Build and Push / Build and Push Docker Image (push) Successful in 53s

This commit is contained in:
2025-10-25 20:27:02 +08:00
parent 7c994e6fba
commit 3d7a81d70e

View File

@@ -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
}