1
0
forked from PGL/Clyde

Merge master into my branch

This commit is contained in:
2024-04-01 10:40:36 +02:00
parent 47e4fb2f8c
commit bce53305b3
3 changed files with 7 additions and 7 deletions

View File

@ -117,7 +117,7 @@ public class CurriculumController {
}
@GetMapping("/externalcurriculum/{userId}")
public ResponseEntity<Map<String,Object>> getStudentsExternalCursus(@RequestHeader("Authorization") String token, @PathVariable String userId){
public ResponseEntity<Map<String,Object>> getStudentsExternalCurriculum(@RequestHeader("Authorization") String token, @PathVariable String userId){
if (authServ.isNotIn(new Role[]{Role.Secretary,Role.Admin, Role.Teacher},token))
return new UnauthorizedResponse<>(null);