Skip to content

Commit

Permalink
AdminUser set to false default
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioLangaritaBenitez committed Dec 5, 2024
1 parent b46c7cd commit c516e14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/handlers/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c516e14

Please sign in to comment.