Skip to content

Commit

Permalink
refactor(HashtagRetrievlaController): 권한 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
mingmingmon committed Dec 22, 2024
1 parent d92d201 commit c682599
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ public class HashtagRetrievalController {

private final RetrieveHashtagUseCase retrieveHashtagUseCase;

@Operation(summary = "[U] Board에서 사용한 횟수를 포함한 해시태그 조회", description = "ROLE_USER 이상의 권한이 필요함")
@PreAuthorize("hasRole('USER')")
@Operation(summary = "[G] 게시글에서 사용된 횟수를 포함한 해시태그 조회", description = "ROLE_GUEST 이상의 권한이 필요함")
@PreAuthorize("hasRole('GUEST')")
@GetMapping("")
public ApiResponse<List<HashtagResponseDto>> retrieveHashtag() {
List<HashtagResponseDto> hashTags = retrieveHashtagUseCase.retrieveHashtagWithUsedBoardCount();
Expand Down

0 comments on commit c682599

Please sign in to comment.