Skip to content

Commit

Permalink
user is required
Browse files Browse the repository at this point in the history
  • Loading branch information
qqmyers committed Oct 3, 2023
1 parent ba2dd84 commit 6f957a7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/edu/harvard/iq/dataverse/api/Datasets.java
Original file line number Diff line number Diff line change
Expand Up @@ -580,13 +580,14 @@ public Response getVersionMetadataBlock(@Context ContainerRequestContext crc,
* @return
*/
@GET
@AuthRequired
@Path("{id}/versions/{versionId}/linkset")
public Response getLinkset(@PathParam("id") String datasetId, @PathParam("versionId") String versionId,
public Response getLinkset(@Context ContainerRequestContext crc, @PathParam("id") String datasetId, @PathParam("versionId") String versionId,
@Context UriInfo uriInfo, @Context HttpHeaders headers) {
if (":draft".equals(versionId)) {
return badRequest("Signposting is not supported on the :draft version");
}
DataverseRequest req = createDataverseRequest(null);
DataverseRequest req = createDataverseRequest(getRequestUser(crc));
try {
DatasetVersion dsv = getDatasetVersionOrDie(req, versionId, findDatasetOrDie(datasetId), uriInfo, headers);
return Response
Expand Down

0 comments on commit 6f957a7

Please sign in to comment.