Skip to content

Commit 6e6dc3a

Browse files
author
Martin Martinez Rivera
committed
Fixed bug in defaultForNew section.
1 parent e2f0dda commit 6e6dc3a

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)