Skip to content

Commit 9157b3d

Browse files
author
Nicola Greco
committed
Merge pull request #93 from martinmr/acl-path
ACL path
2 parents 8de3cf0 + 6e6dc3a commit 9157b3d

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎acl.js‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,6 @@ function allow(mode, req) {
209209
if (i === 0) {
210210
if (path.dirname(path.dirname(relativePath)) == '.') {
211211
filepath = options.root;
212-
} else if (S(relativePath).endsWith("/")) {
213-
filepath = options.root + path.dirname(path.dirname(relativePath));
214212
} else {
215213
filepath = options.root + path.dirname(relativePath);
216214
}
@@ -220,7 +218,7 @@ function allow(mode, req) {
220218
} else if (path.dirname(path.dirname(relativePath)) === '.') {
221219
filepath = options.root;
222220
} else {
223-
filepath = options.root + path.dirname(path.dirname(relativePath));
221+
filepath = options.root + path.dirname(relativePath);
224222
}
225223
}
226224

0 commit comments

Comments
 (0)