diff --git a/src/acl-check.js b/src/acl-check.js index c3bc4b0..51f3a09 100644 --- a/src/acl-check.js +++ b/src/acl-check.js @@ -45,6 +45,8 @@ function accessDenied (kb, doc, directory, aclDoc, agent, modesRequired, origin, } async function getTrustedModesForOrigin (kb, doc, directory, aclDoc, origin, fetch) { + // FIXME: this is duplicate code from the modesAllowed function, will refactor, + // see https://github.com/solid/acl-check/issues/22 var auths if (!directory) { // Normal case, ACL for a file auths = kb.each(null, ACL('accessTo'), doc, aclDoc)