mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-15 02:28:31 +02:00
get identity
This commit is contained in:
1 parent
89abe98b8a
commit
b7eae6539b
1 file changed
+3
@@ -26,6 +26,9 @@ func (h *S3TablesHandler) shouldUseIAM(r *http.Request, identityActions, identit
|
||||
if h.iamAuthorizer == nil || r == nil {
|
||||
return false
|
||||
}
|
||||
if s3_constants.GetIdentityFromContext(r) == nil {
|
||||
return false
|
||||
}
|
||||
// An empty inline `identityActions` slice doesn't mean the identity has no
|
||||
// permissions—it just means authorization lives in IAM policies or session
|
||||
// tokens instead of static action lists. We therefore prefer the IAM path
|
||||
|
||||
Reference in new issue
Block a user