Civil Code § 8062
ARTICLE 2. Miscellaneous Provisions
No act of an owner in good faith and in compliance with a provision of this part shall be construed to prevent a direct contractor’s performance of the contract, or exonerate a surety on a performance or payment bond.