petit commit

This commit is contained in:
tuanvu
2026-01-09 13:38:54 +01:00
parent 2651c34df5
commit c368462ccb
3 changed files with 17 additions and 21 deletions

View File

@@ -54,7 +54,7 @@ public class SessionResource {
}
@GetMapping("/all")
@PreAuthorize("hasRole('coach') or hasRole('athlete')")
@PreAuthorize("hasRole('admin') or hasRole('coach') or hasRole('athlete')")
public ResponseEntity<List<SessionDTO>> getAll() {
List<Session> sessions = sessionDAO.findAll();
List<SessionDTO> dtos = new ArrayList<>();