// middle ware
function isAuthorizedComment(req, res, next) {
if (req.isAuthenticated()) {
Comment.findById(req.params.comment_id, function(error, foundComment) {
});
} else {
console.log("user")
}
}
욕 마음것 해라...
후.....
req.isAuthenticated()&&~ !req.isAuthenticated()&&~로바꾸삼
로그인 되어있으면 커맨트 찾아서 지울수 있게 할려는건데... 로그인 안되어있음 걍 쏘리 못지움 이런식으로....