mirror of
https://github.com/pgsty/minio.git
synced 2026-10-08 18:55:58 +03: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