diff --git a/app/controllers/DatasetController.scala b/app/controllers/DatasetController.scala index 59c19b6c607..f7c600459db 100755 --- a/app/controllers/DatasetController.scala +++ b/app/controllers/DatasetController.scala @@ -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