Skip to content

Commit

Permalink
Fix: 제품 삭제 권한 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Taekgil99 committed Dec 4, 2022
1 parent 87761a4 commit 7fd7c62
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public Product update(Long productId, Long categoryId, int price, String product
private static void checkAccess(Long productId, User user, Product findProduct) {
if (user.getEmail().equals("admin@luxmeal.xyz") && user.getUserRole().equals("ROLE_ADMIN")) {
return;
} else if (productId <= 37) {
} else if (productId > 37) {
return;
}
throw new BusinessLogicException(ExceptionCode.HANDLE_ACCESS_DENIED);
Expand Down

0 comments on commit 7fd7c62

Please sign in to comment.