diff --git a/lib/acl-checker.js b/lib/acl-checker.js index eeb6a176..89bcef8e 100644 --- a/lib/acl-checker.js +++ b/lib/acl-checker.js @@ -133,7 +133,7 @@ class ACLChecker { // without Read, the response code will reveal whether a Container is empty or not if (directory && this.resource.endsWith('/')) resourceAccessDenied([ACL('Read'), ACL('Write')]) // if resource and acl have same parent container, - // then Read Write from parent is required + // then both Read and Write on parent is required else if (!directory && aclFile.value.endsWith(`/${this.suffix}`)) await accessdeniedFromParent([ACL('Read'), ACL('Write')]) // deleting a Document @@ -170,7 +170,7 @@ class ACLChecker { return `${parts.join('/')}/` } - // Gets the ACL's that applies to the resource + // Gets any ACLs that apply to the resource // DELETE uses docAcl when docAcl is parent to the resource // or docAcl and parentAcl when docAcl is the ACL of the Resource async getNearestACL (method) {