If they cannot lawfully do the work, then if they subcontracted you to do it for them, that contract is an illegal contract: parties may not contract to do something which is illegal or against the law. That would make the contract void and unenforceable. If this does not answer your question, please repost with more details.