Skip to content

Commit 4213684

Browse files
authored
Allow downloading tasks of teams you are not in (#8155)
* Allow downloading tasks of teams you are not in * changelog * fix error msg
1 parent d40dfbe commit 4213684

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.unreleased.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ For upgrade instructions, please check the [migration guide](MIGRATIONS.released
3535
- Fixed sorting of mags in outbound zarr streaming. [#8125](https://github.com/scalableminds/webknossos/pull/8125)
3636
- Fixed a bug where you could not create annotations for public datasets of other organizations. [#8107](https://github.com/scalableminds/webknossos/pull/8107)
3737
- Users without edit permissions to a dataset can no longer delete sharing tokens via the API. [#8083](https://github.com/scalableminds/webknossos/issues/8083)
38+
- Fixed downloading task annotations of teams you are not in, when accessing directly via URI. [#8155](https://github.com/scalableminds/webknossos/pull/8155)
3839

3940
### Removed
4041

app/controllers/AnnotationIOController.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ class AnnotationIOController @Inject()(
457457
tracingStoreClient.getSkeletonTracing(skeletonAnnotationLayer, skeletonVersion)
458458
} ?~> "annotation.download.fetchSkeletonLayer.failed"
459459
user <- userService.findOneCached(annotation._user)(GlobalAccessContext) ?~> "annotation.download.findUser.failed"
460-
taskOpt <- Fox.runOptional(annotation._task)(taskDAO.findOne)
460+
taskOpt <- Fox.runOptional(annotation._task)(taskDAO.findOne(_)(GlobalAccessContext)) ?~> "task.notFound"
461461
nmlStream = nmlWriter.toNmlStream(
462462
name,
463463
fetchedSkeletonLayers ::: fetchedVolumeLayers,

0 commit comments

Comments
 (0)