Any person, licensed under Division 1 (commencing with Section 100), Division 2 (commencing with Section 500), or Division 3 (commencing with Section 5000) is guilty of a misdemeanor and subject to the disciplinary provisions of this code applicable to him or her, who conspires with a person not so licensed to violate any provision of this code, or who, with intent to aid or assist that person in violating those provisions does either of the following:
(a) Allows his or her license to be used by that person.
(b) Acts as his or her agent or partner.