Skip to content

Commit a1d3247

Browse files
committed
Correct use of allow handler.
Fixes #697.
1 parent 7d18773 commit a1d3247

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/handlers/get.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,5 @@ function aclAllow (match, req, res, callback) {
200200
const root = ldp.multiuser ? ldp.root + req.hostname + '/' : ldp.root
201201
const relativePath = '/' + _path.relative(root, match)
202202
res.locals.path = relativePath
203-
allow('Read', req, res, function (err) {
204-
callback(err)
205-
})
203+
allow('Read')(req, res, err => callback(!err))
206204
}

0 commit comments

Comments
 (0)