Added permission to check post's owner before allowing tem to edit or delete posts.