We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d64843c commit b5f27c8Copy full SHA for b5f27c8
lib/acl-checker.js
@@ -151,9 +151,11 @@ class ACLChecker {
151
}
152
const groupNodes = returnAcl.graph.statementsMatching(null, ACL('agentGroup'), null)
153
const groupUrls = groupNodes.map(node => node.object.value.split('#')[0])
154
- await Promise.all(groupUrls.map(groupUrl => {
155
- this.requests[groupUrl] = this.requests[groupUrl] || this.fetch(groupUrl, returnAcl.graph)
156
- return this.requests[groupUrl]
+ await Promise.all(groupUrls.map(async groupUrl => {
+ try {
+ const graph = await this.fetch(groupUrl, returnAcl.graph)
157
+ this.requests[groupUrl] = this.requests[groupUrl] || graph
158
+ } catch (e) {} // failed to fetch groupUrl
159
}))
160
161
return returnAcl
0 commit comments