From c516e1457eeae72a8aab7431f506766de19590e3 Mon Sep 17 00:00:00 2001 From: SergioLangaritaBenitez Date: Thu, 5 Dec 2024 11:14:36 +0100 Subject: [PATCH] AdminUser set to false default --- pkg/handlers/create.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/handlers/create.go b/pkg/handlers/create.go index 30e16bdc..5a5ad785 100644 --- a/pkg/handlers/create.go +++ b/pkg/handlers/create.go @@ -53,6 +53,7 @@ var isAdminUser = false func MakeCreateHandler(cfg *types.Config, back types.ServerlessBackend) gin.HandlerFunc { return func(c *gin.Context) { var service types.Service + isAdminUser = false authHeader := c.GetHeader("Authorization") if len(strings.Split(authHeader, "Bearer")) == 1 { isAdminUser = true