Skip to content

Commit 9886527

Browse files
fix: ADMIN_VIEWER 권한을 신고 무시 API에서 제거 (#198)
ADMIN_VIEWER 역할이 불필요하게 지정된 API 수정.
1 parent 77acaac commit 9886527

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/java/org/devkor/apu/saerok_server/domain/admin/api/AdminReportController.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,10 @@ public void deleteCollectionByReport(@PathVariable Long reportId,
123123

124124
@PostMapping("/collections/{reportId}/ignore")
125125
@ResponseStatus(HttpStatus.NO_CONTENT)
126-
@PreAuthorize("hasAnyRole('ADMIN_VIEWER','ADMIN_EDITOR')")
126+
@PreAuthorize("hasAnyRole('ADMIN_EDITOR')")
127127
@Operation(
128128
summary = "새록 신고 무시(신고 삭제)",
129-
description = "관리자 권한 필요: ADMIN_VIEWER 또는 ADMIN_EDITOR",
129+
description = "관리자 권한 필요: ADMIN_EDITOR",
130130
security = @SecurityRequirement(name = "bearerAuth"),
131131
responses = {
132132
@ApiResponse(responseCode = "204", description = "무시 처리 성공(신고 삭제)"),
@@ -142,10 +142,10 @@ public void ignoreCollectionReport(@PathVariable Long reportId,
142142

143143
@PostMapping("/comments/{reportId}/ignore")
144144
@ResponseStatus(HttpStatus.NO_CONTENT)
145-
@PreAuthorize("hasAnyRole('ADMIN_VIEWER','ADMIN_EDITOR')")
145+
@PreAuthorize("hasAnyRole('ADMIN_EDITOR')")
146146
@Operation(
147147
summary = "댓글 신고 무시(신고 삭제)",
148-
description = "관리자 권한 필요: ADMIN_VIEWER 또는 ADMIN_EDITOR",
148+
description = "관리자 권한 필요: ADMIN_EDITOR",
149149
security = @SecurityRequirement(name = "bearerAuth"),
150150
responses = {
151151
@ApiResponse(responseCode = "204", description = "무시 처리 성공(신고 삭제)"),

0 commit comments

Comments
 (0)