Skip to content

Commit

Permalink
make action log match method name, comment tweak #9887
Browse files Browse the repository at this point in the history
  • Loading branch information
pdurbin committed Apr 12, 2024
1 parent a97b931 commit 80ae69b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/edu/harvard/iq/dataverse/api/Admin.java
Original file line number Diff line number Diff line change
Expand Up @@ -1059,9 +1059,9 @@ private Response setSuperuserStatus(AuthenticatedUser user, Boolean isSuperuser)

@Path("superuser/{identifier}")
@PUT
//using string instead of boolean so user doesnt need to add Content type header in their request
// Using string instead of boolean so user doesn't need to add a Content-type header in their request
public Response setSuperuserStatus(@PathParam("identifier") String identifier, String isSuperuser) {
ActionLogRecord alr = new ActionLogRecord(ActionLogRecord.ActionType.Admin, "changeSuperUserStatus")
ActionLogRecord alr = new ActionLogRecord(ActionLogRecord.ActionType.Admin, "setSuperuserStatus")
.setInfo(identifier + ":" + isSuperuser);
try {
return setSuperuserStatus(authSvc.getAuthenticatedUser(identifier), StringUtil.isTrue(isSuperuser));
Expand Down

0 comments on commit 80ae69b

Please sign in to comment.