diff --git a/src/main/java/org/breedinginsight/api/v1/controller/BreedingMethodController.java b/src/main/java/org/breedinginsight/api/v1/controller/BreedingMethodController.java index 5ef7caa75..6e89bd7cd 100644 --- a/src/main/java/org/breedinginsight/api/v1/controller/BreedingMethodController.java +++ b/src/main/java/org/breedinginsight/api/v1/controller/BreedingMethodController.java @@ -135,7 +135,9 @@ public HttpResponse> updateProgramBreeding } @Put("programs/{programId}/breeding-methods/enable") - @ProgramSecured(roles = {ProgramSecuredRole.BREEDER}) +// BI-1779 - Removing the ability to choose predefined methods for a program until we make the germplasm import template dynamically generated +// @ProgramSecured(roles = {ProgramSecuredRole.BREEDER}) + @Secured(SecurityRule.DENY_ALL) public HttpResponse enableSystemBreedingMethods(@PathVariable UUID programId, @Body List systemBreedingMethodIds) throws ApiException, BadRequestException { log.debug("enabling system breeding methods for program: "+programId); diff --git a/src/test/java/org/breedinginsight/api/v1/controller/BreedingMethodControllerIntegrationTest.java b/src/test/java/org/breedinginsight/api/v1/controller/BreedingMethodControllerIntegrationTest.java index ed84a3fa2..0cf098c04 100644 --- a/src/test/java/org/breedinginsight/api/v1/controller/BreedingMethodControllerIntegrationTest.java +++ b/src/test/java/org/breedinginsight/api/v1/controller/BreedingMethodControllerIntegrationTest.java @@ -160,6 +160,7 @@ public void fetchMethodsForNewProgram() { .collect(Collectors.toList()))); } + @Disabled //BI-1779 - Removing the ability to choose predefined methods for a program until we make the germplasm import template dynamically generated @Test public void enableSystemMethods() { Program program = createProgram("enableProgramBM", "EBM", "ENBM"); @@ -498,6 +499,7 @@ public void tryDeleteProgramMethodInUse() throws ApiException { assertThat(programMethods.stream().map(ProgramBreedingMethodEntity::getId).collect(Collectors.toList()), hasItem(createdMethod.getId())); } + @Disabled //BI-1779 - Removing the ability to choose predefined methods for a program until we make the germplasm import template dynamically generated @Test public void tryDisableSystemMethodInUse() { Program program = createProgram("tryDeleteSystemBM", "TDSBM", "TRDSBM");