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
All checks were successful
CI - Build and Push / Build and Push Docker Image (push) Successful in 53s
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user