It's fine if a parent is a child's friend. The issue is if that child is the parent's best friend. The distinction might seem minor, but it's important. It's too much of a burden on the child for the parent to be confiding in the child.