From d1e09adc62f43cfb0f45a6d652c55e44bb361ede Mon Sep 17 00:00:00 2001 From: nireeshT Date: Thu, 12 Nov 2020 18:02:01 -0500 Subject: [PATCH] Remove method level security to update owners (#174) * Removed method level security to update owners * updated to 3.3.3-SNAPSHOT --- pom.xml | 2 +- .../java/com/capitalone/dashboard/rest/DashboardController.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index c6f4a3c8..6669e6ef 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ api jar ${project.groupId}:${project.artifactId} - 3.3.2-SNAPSHOT + 3.3.3-SNAPSHOT Hygieia Rest API Layer https://github.com/Hygieia/api diff --git a/src/main/java/com/capitalone/dashboard/rest/DashboardController.java b/src/main/java/com/capitalone/dashboard/rest/DashboardController.java index ba41f8c4..d6713924 100644 --- a/src/main/java/com/capitalone/dashboard/rest/DashboardController.java +++ b/src/main/java/com/capitalone/dashboard/rest/DashboardController.java @@ -101,7 +101,7 @@ public ResponseEntity updateDashboard(@PathVariable ObjectId id, } } - @DashboardOwnerOrAdmin + @RequestMapping(path = "/dashboard/{id}/owners", method = PUT, consumes = APPLICATION_JSON_VALUE) public ResponseEntity> updateOwners(@PathVariable ObjectId id, @RequestBody Iterable owners) { return new ResponseEntity>(dashboardService.updateOwners(id, owners), HttpStatus.ACCEPTED);