Skip to content

Commit 00c536a

Browse files
authored
Merge pull request #108 from solid/allow-acl-creation-for-folders-under-root
Allow for creation of ACL resources on folders directly under root
2 parents 2ae4426 + d41a224 commit 00c536a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/acl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ UI.acl.getACLorDefault = function (doc, callbackFunction) {
337337
}
338338
var right = uri.lastIndexOf('/')
339339
var left = uri.indexOf('/', uri.indexOf('//') + 2)
340-
if (left >= right) {
340+
if (left > right) {
341341
return callbackFunction(false, true, 404, 'Found no ACL resource')
342342
}
343343
uri = uri.slice(0, right + 1)

0 commit comments

Comments
 (0)