Skip to content

Commit f848573

Browse files
committed
Remore @preauth from getPriorityDaimonsEndpoint, it is a simple filter function and does not require permissons.
The previous check required read or write access to all sources.
1 parent c151620 commit f848573

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/main/java/org/ohdsi/webapi/source/SourceService.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,6 @@ public ResponseEntity<SourceInfo> checkConnectionEndpoint(@PathVariable("key") f
378378
* @return
379379
*/
380380
@GetMapping(value = "/daimon/priority", produces = MediaType.APPLICATION_JSON_VALUE)
381-
@PreAuthorize("isAnyPermitted(anyOf('read:source','write:source'))")
382381
public ResponseEntity<Map<SourceDaimon.DaimonType, SourceInfo>> getPriorityDaimonsEndpoint() {
383382
return ResponseEntity.ok(getPriorityDaimons()
384383
.entrySet().stream()

0 commit comments

Comments
 (0)