Cal. Bus. & Prof. Code § 23355.2
(b) Notwithstanding any other provision of this division, a hotel or motel having an on-sale license may sell alcoholic beverages to its registered guests by means of a controlled access alcoholic beverage cabinet located in the guestrooms of those registered guests, provided that each of the following conditions is met: