diff --git a/CHANGELOG.unreleased.md b/CHANGELOG.unreleased.md index e931b4d0a4..78edcbdd03 100644 --- a/CHANGELOG.unreleased.md +++ b/CHANGELOG.unreleased.md @@ -19,6 +19,7 @@ For upgrade instructions, please check the [migration guide](MIGRATIONS.released ### Fixed - Fixed a bug during dataset upload in case the configured `datastore.baseFolder` is an absolute path. [#8098](https://github.com/scalableminds/webknossos/pull/8098) [#8103](https://github.com/scalableminds/webknossos/pull/8103) +- Fixed a bug where you could not create annotations for public datasets of other organizations. [#8107](https://github.com/scalableminds/webknossos/pull/8107) ### Removed diff --git a/app/models/annotation/AnnotationService.scala b/app/models/annotation/AnnotationService.scala index 51e16b3696..f3b56e813d 100755 --- a/app/models/annotation/AnnotationService.scala +++ b/app/models/annotation/AnnotationService.scala @@ -391,7 +391,7 @@ class AnnotationService @Inject()( for { dataset <- datasetDAO.findOne(datasetId) ?~> "dataset.noAccessById" dataSource <- datasetService.dataSourceFor(dataset) - datasetOrganization <- organizationDAO.findOne(dataset._organization) + datasetOrganization <- organizationDAO.findOne(dataset._organization)(GlobalAccessContext) ?~> "organization.notFound" usableDataSource <- dataSource.toUsable ?~> Messages("dataset.notImported", dataSource.id.name) annotationLayers <- createTracingsForExplorational(dataset, usableDataSource,