Skip to content

Commit 844bd5e

Browse files
FIXME note about #22
1 parent 28e788d commit 844bd5e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/acl-check.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ function accessDenied (kb, doc, directory, aclDoc, agent, modesRequired, origin,
4545
}
4646

4747
async function getTrustedModesForOrigin (kb, doc, directory, aclDoc, origin, fetch) {
48+
// FIXME: this is duplicate code from the modesAllowed function, will refactor,
49+
// see https://github.com/solid/acl-check/issues/22
4850
var auths
4951
if (!directory) { // Normal case, ACL for a file
5052
auths = kb.each(null, ACL('accessTo'), doc, aclDoc)

0 commit comments

Comments
 (0)