Added privacy checking logic of posts to the Post model