diff --git a/src/main/java/org/ntlab/citrusserver/repositories/TodoManager.java b/src/main/java/org/ntlab/citrusserver/repositories/TodoManager.java index 1d5d9dc..519fcfa 100644 --- a/src/main/java/org/ntlab/citrusserver/repositories/TodoManager.java +++ b/src/main/java/org/ntlab/citrusserver/repositories/TodoManager.java @@ -34,9 +34,9 @@ private void checkToken(String accountId, String token){ - if(!accountManager.checkToken(accountId, token)){ - throw new ResponseStatusException(HttpStatus.FORBIDDEN); - } +// if(!accountManager.checkToken(accountId, token)){ +// throw new ResponseStatusException(HttpStatus.FORBIDDEN); +// } } /** @@ -63,9 +63,6 @@ if(!todos.get(accountId).containsKey(bookId)){ throw new ResponseStatusException(HttpStatus.NOT_FOUND); } - if(accountManager.checkToken(accountId, token)){ - throw new ResponseStatusException(HttpStatus.FORBIDDEN); - } checkToken(accountId, token); return todos.get(accountId).get(bookId); }