mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
fix: no need to proxy if IAM not initialized (#12416)
IAM not initialized doesn't mean we can't still read the content from the disk, we should just allow the request to go-through if object layer is initialized.
This commit is contained in:
@@ -166,10 +166,7 @@ func setBrowserRedirectHandler(h http.Handler) http.Handler {
|
||||
}
|
||||
|
||||
func shouldProxy() bool {
|
||||
if newObjectLayerFn() == nil {
|
||||
return true
|
||||
}
|
||||
return !globalIAMSys.Initialized()
|
||||
return newObjectLayerFn() == nil
|
||||
}
|
||||
|
||||
// Fetch redirect location if urlPath satisfies certain
|
||||
|
||||
Reference in New Issue
Block a user