Skip to content

Commit

Permalink
Merge pull request #17 from StudyFlexUMC5th/yeeun2
Browse files Browse the repository at this point in the history
Chore: Admin 권한 기능 주석처리(연결시 테스트를 위해)
  • Loading branch information
Yeeun411 authored Jan 8, 2024
2 parents d70d4ce + 2f63e89 commit dc81daf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public ResponseEntity<BaseResponse<InquiryListResponseDto>> searchInquiries(
}

@PostMapping("/{inquiryId}/answer")
@PreAuthorize("hasAnyRole('ADMIN')")
// @PreAuthorize("hasAnyRole('ADMIN')")
public ResponseEntity<BaseResponse<InquiryAnswerResponseDto>> postAnswer(
@PathVariable Long inquiryId,
@RequestBody InquiryAnswerRequestDto request) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/notices")
@RequestMapping("/app/notices")
public class StudyFlexNoticeController {
private final StudyFlexNoticeService StudyFlexNoticeService;

Expand All @@ -22,7 +22,7 @@ public StudyFlexNoticeController(StudyFlexNoticeService StudyFlexNoticeService)
}

@PostMapping
@PreAuthorize("hasAnyRole('ADMIN')")
// @PreAuthorize("hasAnyRole('ADMIN')")
public ResponseEntity<BaseResponse<String>> createNotice(@RequestBody StudyFlexNoticeUploadDto request) {
try {
Notice notice = StudyFlexNoticeService.createNotice(request);
Expand Down

0 comments on commit dc81daf

Please sign in to comment.