Cal. Com. Code § 9409
(a) A term in a letter of credit or a rule of law, statute, regulation, custom, or practice applicable to the letter of credit which prohibits, restricts, or requires the consent of an applicant, issuer, or nominated person to a beneficiary’s assignment of or creation of a security interest in a letter-of-credit right is ineffective to the extent that the term or rule of law, statute, regulation, custom, or practice does, or would do, either of the following:
(b) To the extent that a term in a letter of credit is ineffective under subdivision (a) but would be effective under law other than this division or a custom or practice applicable to the letter of credit, to the transfer of a right to draw or otherwise demand performance under the letter of credit, or to the assignment of a right to proceeds of the letter of credit, all of the following rules apply with respect to the creation, attachment, or perfection of a security interest in the letter-of-credit right: