Skip to content

Commit

Permalink
disable the ability to delete deploys through api
Browse files Browse the repository at this point in the history
  • Loading branch information
rwxzhu committed Nov 20, 2024
1 parent 20e9732 commit 16caa81
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,7 @@ public void update(
LOG.info("{} successfully updated deploy {} with {}", userName, id, deployBean);
}

@DELETE
@Timed
@ExceptionMetered
@Path("/{id : [a-zA-Z0-9\\-_]+}")
@ApiOperation(value = "Delete deploy info", notes = "Delete deploy info given a deploy id")
@RolesAllowed(TeletraanPrincipalRole.Names.WRITE)
@ResourceAuthZInfo(type = AuthZResource.Type.DEPLOY, idLocation = Location.PATH)
public void delete(
private void delete(
@Context SecurityContext sc,
@ApiParam(value = "Deploy id", required = true) @PathParam("id") String id)
throws Exception {
Expand Down

0 comments on commit 16caa81

Please sign in to comment.