Skip to content

Commit db18606

Browse files
kjetilkrubensworks
authored andcommitted
No ACL at all is a server misconfig, so 500
1 parent f55ee80 commit db18606

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/acl-checker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class ACLChecker {
5151

5252
// Check the resource's permissions
5353
this.acl = this.acl || await this.getNearestACL().catch(err => {
54-
throw new HTTPError(403, `Found no ACL file:\n${err}`)
54+
throw new HTTPError(500, `Found no ACL file:\n${err}`)
5555
})
5656
// console.log('TEST', this.acl)
5757
const resource = rdf.sym(this.resource)

test/integration/acl-oidc-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ describe('ACL with WebID+OIDC over HTTP', function () {
127127
// })
128128
})
129129

130-
describe.only('empty .acl', function () {
130+
describe('empty .acl', function () {
131131
describe('with no default in parent path', function () {
132132
it('should give no access', function (done) {
133133
var options = createOptions('/empty-acl/test-folder', 'user1')

0 commit comments

Comments
 (0)