Add authorization in check deploy of library

This commit is contained in:
Konstantinos Triantafyllou 2024-02-20 10:55:00 +02:00
parent e92739091f
commit 5bad820e3d
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ public class MonitorLibraryCheckDeployController {
return "Hello from uoa-monitor-service library!";
}
// @PreAuthorize("hasAnyAuthority(@AuthorizationService.PORTAL_ADMIN)")
@PreAuthorize("hasAnyAuthority(@AuthorizationService.PORTAL_ADMIN)")
@RequestMapping(value = "/health_check/advanced", method = RequestMethod.GET)
public Map<String, String> checkEverything() {
Map<String, String> response = new HashMap<>();