Skip to content

Commit f696c35

Browse files
committed
Use ResourceMapper in handlers/get#hasReadPermissions
1 parent 3f63cb6 commit f696c35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/handlers/get.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ function hasReadPermissions (file, req, res, callback) {
200200
return callback(true)
201201
}
202202

203-
const root = ldp.multiuser ? ldp.root + req.hostname + '/' : ldp.root
203+
const root = ldp.resourceMapper.getBasePath(req.hostname)
204204
const relativePath = '/' + _path.relative(root, file)
205205
res.locals.path = relativePath
206206
allow('Read')(req, res, err => callback(!err))

0 commit comments

Comments
 (0)