Skip to content

Commit 5e62f8c

Browse files
committed
Hopefully making things a bit easier to read
1 parent e03b2f3 commit 5e62f8c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/acl-checker.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,8 @@ class ACLChecker {
113113
if (!returnAcl) {
114114
throw new HTTPError(500, `No ACL found for ${resource}, searched in \n- ${acls.join('\n- ')}`)
115115
}
116-
const groupUrls = returnAcl.graph
117-
.statementsMatching(null, ACL('agentGroup'), null)
118-
.map(node => node.object.value.split('#')[0])
116+
const groupNodes = returnAcl.graph.statementsMatching(null, ACL('agentGroup'), null)
117+
const groupUrls = groupNodes.map(node => node.object.value.split('#')[0])
119118
await Promise.all(groupUrls.map(groupUrl => {
120119
this.requests[groupUrl] = this.requests[groupUrl] || this.fetch(groupUrl, returnAcl.graph)
121120
return this.requests[groupUrl]

0 commit comments

Comments
 (0)