Skip to content

Commit 611feb9

Browse files
author
nicola
committed
adding suffixAcl to acl.js
1 parent cfbc744 commit 611feb9

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎acl.js‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ var file = require('./fileStore.js');
1313
var ns = require('./vocab/ns.js').ns;
1414
var rdfVocab = require('./vocab/rdf.js');
1515

16-
var aclExtension = ".acl";
17-
1816
function allow(mode, req, res) {
1917
var options = req.app.locals.ldp;
2018
var origin = req.get('origin');
@@ -35,8 +33,8 @@ function allow(mode, req, res) {
3533
}
3634

3735
for (var i = 0; i < depth.length; i++) {
38-
var pathAcl = S(filepath).endsWith(aclExtension) ?
39-
filepath : filepath + aclExtension;
36+
var pathAcl = S(filepath).endsWith(options.suffixAcl) ?
37+
filepath : filepath + options.suffixAcl;
4038
var pathUri = file.filenameToBaseUri(filepath, options.uri, options.base);
4139
relativePath = path.relative(options.base, filepath);
4240

0 commit comments

Comments
 (0)