mirror of
https://github.com/pgsty/minio.git
synced 2026-07-24 22:46:16 +03: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