From 844bd5e8fb6b5fcdde74a11f4d5d2022b70a67ea Mon Sep 17 00:00:00 2001 From: Michiel de Jong Date: Fri, 15 Mar 2019 11:48:41 +0100 Subject: [PATCH] FIXME note about https://github.com/solid/acl-check/issues/22 --- src/acl-check.js | 2 ++ 1 file changed, 2 insertions(+) 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)