This makes the enclosures part of the current carrying system. Interruptions in the bonding wire can create electrocution hazards. I don't know the NEC code rule but I know the work was done by a hack and I am being polite.
I know this is not an incorrect way to describe the work but the bare wire in the cable is NOT a Ground wire in NEC speak it is an equipment ground isn't it? We call it a bond wire and current is not intended to flow on a bond or ground wire except under abnormal conditions like a short circuit.