mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
make sure to pass groups for all credentials while verifying policies (#14193)
fixes #14180
This commit is contained in:
@@ -951,6 +951,7 @@ func (api objectAPIHandlers) PostPolicyBucketHandler(w http.ResponseWriter, r *h
|
||||
// explicit permissions for the user.
|
||||
if !globalIAMSys.IsAllowed(iampolicy.Args{
|
||||
AccountName: cred.AccessKey,
|
||||
Groups: cred.Groups,
|
||||
Action: iampolicy.PutObjectAction,
|
||||
ConditionValues: getConditionValues(r, "", cred.AccessKey, cred.Claims),
|
||||
BucketName: bucket,
|
||||
|
||||
Reference in New Issue
Block a user