File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/main/java/clap/server/adapter/inbound/web/task Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 77import io .swagger .v3 .oas .annotations .tags .Tag ;
88import lombok .RequiredArgsConstructor ;
99import org .springframework .security .access .annotation .Secured ;
10+ import org .springframework .security .core .annotation .AuthenticationPrincipal ;
1011import org .springframework .web .bind .annotation .PatchMapping ;
1112import org .springframework .web .bind .annotation .PathVariable ;
1213import org .springframework .web .bind .annotation .RequestMapping ;
@@ -21,7 +22,7 @@ public class CancelTaskController {
2122 @ Operation (summary = "작업 취소" )
2223 @ Secured ({"ROLE_USER" ,"ROLE_MANAGER" })
2324 @ PatchMapping ("/{taskId}/cancel" )
24- public void cancelTask (@ PathVariable Long taskId , SecurityUserDetails userDetails ) {
25+ public void cancelTask (@ PathVariable Long taskId , @ AuthenticationPrincipal SecurityUserDetails userDetails ) {
2526 cancelTaskUsecase .cancleTask (taskId , userDetails .getUserId ());
2627 }
2728}
You can’t perform that action at this time.
0 commit comments