We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 899f130 commit 6bda3e8Copy full SHA for 6bda3e8
1 file changed
lib/handlers/allow.js
@@ -43,6 +43,10 @@ function allow (mode, checkPermissionsForDirectory) {
43
resourcePath += '/'
44
}
45
46
+ let trustedOrigins = [ldp.resourceMapper.resolveUrl(req.hostname)].concat(ldp.trustedOrigins)
47
+ if (ldp.multiuser) {
48
+ trustedOrigins.push(ldp.serverUri)
49
+ }
50
// Obtain and store the ACL of the requested resource
51
req.acl = new ACL(rootUrl + resourcePath, {
52
agentOrigin: req.get('origin'),
@@ -56,7 +60,7 @@ function allow (mode, checkPermissionsForDirectory) {
56
60
},
57
61
suffix: ldp.suffixAcl,
58
62
strictOrigin: ldp.strictOrigin,
59
- trustedOrigins: [ldp.resourceMapper.resolveUrl(req.hostname)].concat(ldp.trustedOrigins)
63
+ trustedOrigins: trustedOrigins
64
})
65
66
// Ensure the user has the required permission
0 commit comments