Skip to content

Commit

Permalink
fix(#41): 등급 삭제 시 권한 필요
Browse files Browse the repository at this point in the history
  • Loading branch information
kyeonkim committed Oct 7, 2024
1 parent 2d5363b commit 5875248
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public ApiResponse<?> updateTier(
return ApiResponse.ok(null);
}

@PreAuthorize("hasRole('ROLE_ADMIN')")
@DeleteMapping("/{tierId}")
public ApiResponse<?> deleteTier(@PathVariable(name = "tierId") Long tierId) {
tierService.deleteTier(tierId);
Expand Down

0 comments on commit 5875248

Please sign in to comment.