Skip to content

Commit e80eb41

Browse files
authored
fix(api): getWorkerModelSecretHandler permission (#6141)
Signed-off-by: francois samin <[email protected]>
1 parent 67d92cb commit e80eb41

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

engine/api/router_middleware_auth_permission.go

+4
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,10 @@ func (api *API) checkGroupPermissions(ctx context.Context, w http.ResponseWriter
367367
}
368368
}
369369
} else {
370+
// Hatcheries started for "shared.infra" group are granted for group "shared.infra"
371+
if isHatcheryShared(ctx) {
372+
return nil
373+
}
370374
if !isGroupMember(ctx, g) && !isMaintainer(ctx) { // Only group member or CDS maintainer can get a group or its dependencies
371375
return sdk.WithStack(sdk.ErrForbidden)
372376
}

0 commit comments

Comments
 (0)