Skip to content

Commit

Permalink
Fix creating annotation for public dataset of other orga (#8107)
Browse files Browse the repository at this point in the history
* Fix creating annotation for public dataset of other orga

* changelog
  • Loading branch information
fm3 authored Oct 1, 2024
1 parent ce8ffb3 commit 48c10e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion app/models/annotation/AnnotationService.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 48c10e6

Please sign in to comment.