Skip to content

Commit 40cfa40

Browse files
committed
Merge branch 'master' of github.com:scalableminds/webknossos into functional_dataset_settings
2 parents bec96c9 + c71944c commit 40cfa40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webknossos-datastore/app/com/scalableminds/webknossos/datastore/storage/RemoteSourceDescriptorService.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class RemoteSourceDescriptorService @Inject()(dSRemoteWebknossosClient: DSRemote
5555
} else if (uri.getScheme == null || uri.getScheme == DataVaultService.schemeFile) {
5656
val localPath = Paths.get(uri.getPath)
5757
if (localPath.isAbsolute) {
58-
if (localPath.toString.startsWith(localDatasetDir.toAbsolutePath.toString) || dataStoreConfig.Datastore.localDirectoryWhitelist
58+
if (localPath.toString.startsWith(localDatasetDir.getParent.toAbsolutePath.toString) || dataStoreConfig.Datastore.localDirectoryWhitelist
5959
.exists(whitelistEntry => localPath.toString.startsWith(whitelistEntry)))
6060
uri
6161
else

0 commit comments

Comments
 (0)