Skip to content

Commit 1421b6e

Browse files
authored
Merge pull request #185 from TaskFlow-CLAP/CLAP-174
CLAP-174 작업보드 Controller에 담당자 권한 설정 추가
2 parents 8b08696 + 755c593 commit 1421b6e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/main/java/clap/server/adapter/inbound/web/task/TaskBoardController.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import org.springframework.data.domain.Pageable;
2020
import org.springframework.format.annotation.DateTimeFormat;
2121
import org.springframework.http.ResponseEntity;
22+
import org.springframework.security.access.annotation.Secured;
2223
import org.springframework.security.core.annotation.AuthenticationPrincipal;
2324
import org.springframework.web.bind.annotation.*;
2425

@@ -36,6 +37,7 @@ public class TaskBoardController {
3637
private final UpdateTaskBoardUsecase updateTaskBoardUsecase;
3738

3839
@Operation(summary = "작업 보드 조회 API")
40+
@Secured({"ROLE_MANAGER"})
3941
@PostMapping
4042
public ResponseEntity<TaskBoardResponse> getTaskBoard(@RequestParam(defaultValue = "0") int page,
4143
@RequestParam(defaultValue = "20") int pageSize,
@@ -51,6 +53,7 @@ public ResponseEntity<TaskBoardResponse> getTaskBoard(@RequestParam(defaultValue
5153
}
5254

5355
@Operation(summary = "작업 보드 순서 및 상태 변경 API")
56+
@Secured({"ROLE_MANAGER"})
5457
@PatchMapping
5558
public void updateTaskBoard(@Parameter(description = "전환될 작업의 상태, 상태 전환이 아니라면 입력 X", schema = @Schema(allowableValues = {"IN_PROGRESS", "PENDING_COMPLETED", "COMPLETED"}))
5659
@RequestParam(required = false) TaskStatus status,

0 commit comments

Comments
 (0)