mirror of
https://github.com/pgsty/minio.git
synced 2026-08-10 16:23:28 +03:00
Resource matching fix to overcome issues with regular expression based match (#1476)
This commit is contained in:
committed by
Harshavardhana
parent
a5959789d5
commit
82113b747c
+1
-1
@@ -54,7 +54,7 @@ func enforceBucketPolicy(action string, bucket string, reqURL *url.URL) (s3Error
|
||||
return ErrAccessDenied
|
||||
}
|
||||
|
||||
// Construct resource in 'arn:aws:s3:::examplebucket' format.
|
||||
// Construct resource in 'arn:aws:s3:::examplebucket/object' format.
|
||||
resource := AWSResourcePrefix + strings.TrimPrefix(reqURL.Path, "/")
|
||||
|
||||
// Get conditions for policy verification.
|
||||
|
||||
Reference in New Issue
Block a user