How did company in fatal trench collapse get Boston permit?

The utility company involved in an incident that left two workers dead in a trench at a Boston construction site on Wednesday has been fined thousands of dollars in connection with concerning safety issues, according to records from the Occupational Safety and Health Administration. So how did it get a permit to work in Boston?