Skip to content

Commit

Permalink
extend ACL test case
Browse files Browse the repository at this point in the history
michaeloffner committed Oct 6, 2023
1 parent 0305e94 commit d9937a7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/functions/ACL.cfc
Original file line number Diff line number Diff line change
@@ -290,8 +290,7 @@ component extends="org.lucee.cfml.test.LuceeTestCase" labels="s3" {
if(add) {
arr=[{'group':"authenticated",'permission':"WRITE"}];
if(useS3Function) {
if(isEmpty(arguments.objectName)) S3AddACL(arguments.bucketName,"",arr);
else S3AddACL(arguments.bucketName,arguments.objectName,arr);
S3AddACL(arguments.bucketName,isEmpty(arguments.objectName)?"":arguments.objectName,arr);
}
else {
StoreAddACL(dir,arr);
@@ -313,8 +312,8 @@ component extends="org.lucee.cfml.test.LuceeTestCase" labels="s3" {
arr=[{'group':"authenticated",'permission':"WRITE"}];

if(useS3Function) {
if(isEmpty(arguments.objectName)) S3SetACL(arguments.bucketName,"",arr);
else S3SetACL(arguments.bucketName,arguments.objectName,arr);
S3SetACL(bucketName:arguments.bucketName,objectName:isEmpty(arguments.objectName)?"":arguments.objectName,acl:arr);
S3SetACL(path:dir,acl:arr);
}
else {
StoreSetACL(dir,arr);

0 comments on commit d9937a7

Please sign in to comment.