There was a thread on this but I can’t comment, as it has subsequently been locked – Complianz breaks Cornerstone + Quickfix
I’ve tried adding the code to my functions.php and it switches off the Complianz plugin on the front end, rather than just when using Cornerstone. I was really hoping that this was going to work, as manually switching the login off every time I need to implement updates is incredibly time consuming!