Skip to content

Commit

Permalink
Fix accessing public datasets (#8242)
Browse files Browse the repository at this point in the history
  • Loading branch information
fm3 authored Nov 27, 2024
1 parent 6c0a472 commit 7206862
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/DatasetController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ class DatasetController @Inject()(userService: UserService,
for {
datasetIdValidated <- ObjectId.fromString(datasetId)
dataset <- datasetDAO.findOne(datasetIdValidated)(ctx) ?~> notFoundMessage(datasetId) ~> NOT_FOUND
organization <- organizationDAO.findOne(dataset._organization) ~> NOT_FOUND
organization <- organizationDAO.findOne(dataset._organization)(GlobalAccessContext) ~> NOT_FOUND
_ <- Fox.runOptional(request.identity)(user =>
datasetLastUsedTimesDAO.updateForDatasetAndUser(dataset._id, user._id))
// Access checked above via dataset. In case of shared dataset/annotation, show datastore even if not otherwise accessible
Expand Down

0 comments on commit 7206862

Please sign in to comment.