Smoking (even of tobacco) can generally be banned in the CC&Rs of properties (multifamily complexes is the case where this makes the most sense) and by the landlord in any rented property, multifamily or subject to CC&Rs or not.