It'll help a lot if you can suggest a Code compliant way to handle the situation.
If you can do this without costing the Boss money, then chances are you're going to look better & better to Boss as time goes on.
(I wouldn't quit my day-job just yet)
Their bad example might be more educational than a good example, as long as nobody gets hurt!!