Skip to content

Commit 6c1938b

Browse files
Fix rename missed in merge
1 parent e126aad commit 6c1938b

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

lib/header.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,11 @@ function parseMetadataFromHeader (linkHeader) {
102102

103103
// Adds a header that describes the user's permissions
104104
function addPermissions (req, res, next) {
105-
const { acl, session, path } = req
105+
const { acl, session } = req
106106
if (!acl) return next()
107107

108108
// Turn permissions for the public and the user into a header
109-
const resource = utils.uriAbs(req) + path
109+
const resource = utils.getFullUri(req)
110110
Promise.all([
111111
getPermissionsFor(acl, null, resource),
112112
getPermissionsFor(acl, session.userId, resource)

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)