diff --git a/lib/handlers/allow.js b/lib/handlers/allow.js index 5487d909a..dcc709065 100644 --- a/lib/handlers/allow.js +++ b/lib/handlers/allow.js @@ -27,9 +27,11 @@ function allow (mode) { suffix: ldp.suffixAcl, strictOrigin: ldp.strictOrigin }) + req.acl = acl getUserId(req, function (err, userId) { if (err) return next(err) + req.userId = userId var reqPath = res && res.locals && res.locals.path ? res.locals.path