We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d1dec6 commit daac7f7Copy full SHA for daac7f7
lib/acl-checker.js
@@ -50,10 +50,15 @@ class ACLChecker {
50
resource = rdf.sym(ACLChecker.getDirectory(this.resource))
51
}
52
// If this is an ACL, Control mode must be present for any operations
53
- if (this.isAcl(this.resource) || this.isAcl(decodeURIComponent(this.slug))) {
+ if (this.isAcl(this.resource)) {
54
mode = 'Control'
55
resource = rdf.sym(this.resource.substring(0, this.resource.length - this.suffix.length))
56
57
+ // If the slug is an acl, reject
58
+ if (this.isAcl(decodeURIComponent(this.slug))) {
59
+ this.aclCached[cacheKey] = Promise.resolve(false)
60
+ return this.aclCached[cacheKey]
61
+ }
62
const directory = acl.isContainer ? rdf.sym(ACLChecker.getDirectory(acl.acl)) : null
63
const aclFile = rdf.sym(acl.acl)
64
const agent = user ? rdf.sym(user) : null
0 commit comments