Skip to content

Commit

Permalink
FIXME note about nodeSolidServer#22
Browse files Browse the repository at this point in the history
  • Loading branch information
michielbdejong committed Mar 15, 2019
1 parent 28e788d commit 844bd5e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/acl-check.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 844bd5e

Please sign in to comment.