Skip to content

Commit 1288858

Browse files
committed
Allow absolute mag paths to point to same-orga datasets
1 parent 9395ef6 commit 1288858

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)