Skip to content

Commit

Permalink
Fixed user check
Browse files Browse the repository at this point in the history
  • Loading branch information
catttam committed Jan 29, 2024
1 parent 7363c1b commit 9e1a744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/handlers/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func MakeCreateHandler(cfg *types.Config, back types.ServerlessBackend) gin.Hand
// Check if users in allowed_users have a MinIO associated user
minIOAdminClient, _ := utils.MakeMinIOAdminClient(cfg)
uids := mc.CheckUsersInCache(service.AllowedUsers)
if len(uids) == 0 {
if len(uids) > 0 {
for _, uid := range uids {
sk, _ := auth.GenerateRandomKey(8)
minIOAdminClient.CreateMinIOUser(uid, sk)
Expand Down

0 comments on commit 9e1a744

Please sign in to comment.