Skip to content

Commit

Permalink
fix bad merge on setAccessControlPolicy
Browse files Browse the repository at this point in the history
  • Loading branch information
jclausen committed Feb 16, 2021
1 parent 0214d25 commit 3bff80f
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions models/AmazonS3.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -407,15 +407,6 @@ component accessors="true" singleton {
amzHeaders = { "x-amz-acl" = arguments.acl }
);

var grantsXML = xmlSearch( results.response, "//*[local-name()='Grant']" );
return arrayMap( grantsXML, function( node ) {
return {
"type" : node.grantee.XMLAttributes[ "xsi:type" ],
"displayName" : "",
"permission" : node.permission.XMLText,
"uri" : node.grantee.XMLAttributes[ "xsi:type" ] == "Group" ? node.grantee.uri.xmlText : node.grantee.displayName.xmlText
};
} );
}

/**
Expand All @@ -441,6 +432,10 @@ component accessors="true" singleton {
"list-type" : 2
};

if ( len( arguments.prefix ) ) {
parameters[ "prefix" ] = arguments.prefix;
}

if ( len( arguments.marker ) ) {
parameters[ "marker" ] = arguments.marker;
}
Expand Down

0 comments on commit 3bff80f

Please sign in to comment.