Skip to content

Commit 09a951b

Browse files
authored
Merge pull request #12055 from IQSS/scolapasta-patch-1
Fix role assignment history JS
2 parents 015ad0c + 9c0d3ac commit 09a951b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/edu/harvard/iq/dataverse/ManageFilePermissionsPage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ public void setRenderFileMessages(boolean renderFileMessages) {
586586

587587
public String getSignedUrlForRAHistoryCsv() {
588588
//Including /v1 is required for the signature to validate
589-
String apiPath = "/api/v1/datasets/" + dataset.getId() + "/files/permissions/history";
589+
String apiPath = "/api/v1/datasets/" + dataset.getId() + "/files/assignments/history";
590590

591591
try {
592592
// Get the application URL from the system config

src/main/java/edu/harvard/iq/dataverse/ManagePermissionsPage.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -701,10 +701,10 @@ public String getSignedUrlForRAHistoryCsv() {
701701
//Including /v1 in these urls is required for the signature to validate
702702
if (dvObject instanceof Dataverse dv) {
703703
// For Dataverses, use the dataverses API endpoint with the alias
704-
apiPath = "/api/v1/dataverses/" + dv.getAlias() + "/permissions/history";
704+
apiPath = "/api/v1/dataverses/" + dv.getAlias() + "/assignments/history";
705705
} else if (dvObject instanceof Dataset) {
706706
// For Datasets, use the datasets API endpoint with the ID
707-
apiPath = "/api/v1/datasets/" + dvObject.getId() + "/permissions/history";
707+
apiPath = "/api/v1/datasets/" + dvObject.getId() + "/assignments/history";
708708
} else {
709709
// For other types (like DataFile), return null or a default path
710710
return null;

0 commit comments

Comments
 (0)