Modify endpoint post /posts/edit to only allow editing of posts owned by the current user.