Merge branch 'BE/userinfo' into 'backend'

feat: report 수정

See merge request s11-webmobile1-sub2/S11P12A701!132
This commit is contained in:
박정민 2024-08-09 12:41:55 +09:00
commit ad58cb1bff

View File

@ -29,7 +29,7 @@ public class ReportController {
@PostMapping("/submit/quizSet/{reportSetId}") @PostMapping("/submit/quizSet/{reportSetId}")
public ResponseEntity<?> submit(@PathVariable("reportSetId") UUID reportSetId, @RequestBody ReportRequest reportRequest, HttpServletRequest request) { public ResponseEntity<?> submit(@PathVariable("reportSetId") UUID reportSetId, @RequestBody ReportRequest reportRequest, HttpServletRequest request) {
String token = request.getHeader("Authoriza]tion"); String token = request.getHeader("Authorization");
long userId = Long.parseLong(jwtUtil.getUserId(token)); long userId = Long.parseLong(jwtUtil.getUserId(token));
if (userService.isTeacher(userId)) if (userService.isTeacher(userId))