diff --git a/cmd/web-handlers.go b/cmd/web-handlers.go index 6dfb0a38f..a2927d300 100644 --- a/cmd/web-handlers.go +++ b/cmd/web-handlers.go @@ -471,7 +471,7 @@ func (web *webAPIHandlers) ListObjects(r *http.Request, args *ListObjectsArgs, r AccountName: claims.Subject, Action: iampolicy.ListBucketAction, BucketName: args.BucketName, - ConditionValues: getConditionValues(r, "", ""), + ConditionValues: getConditionValues(r, "", claims.Subject), IsOwner: owner, }) @@ -479,7 +479,7 @@ func (web *webAPIHandlers) ListObjects(r *http.Request, args *ListObjectsArgs, r AccountName: claims.Subject, Action: iampolicy.PutObjectAction, BucketName: args.BucketName, - ConditionValues: getConditionValues(r, "", ""), + ConditionValues: getConditionValues(r, "", claims.Subject), IsOwner: owner, ObjectName: args.Prefix + "/", })