When Is Using a Hidden Camera Illegal?

When Is Using a Hidden Camera Illegal?