The chief of police or person performing the functions thereof of any town, city, or city and county or of any state institution of higher education employing peace officers in accordance with article 7.5 of title 24, C.R.S., or the sheriff of any county may in his or her discretion, upon request of the chief of police or person exercising the functions thereof in any other town, city, or city and county or any other state institution of higher education employing a peace officer in accordance with article 7.5 of title 24, C.R.S., or the sheriff of any other county, assign police officers or deputies under his or her control, together with any equipment he or she deems proper, to perform temporary duty within the jurisdiction of the requesting chief of police or sheriff and under the direction and command of the requesting chief of police or sheriff; but the chief of police or sheriff assigning the officers or deputies may provide that the officers or deputies shall be under the immediate command of a superior officer designated by the assigning chief of police or sheriff, which superior officer shall be under the direct supervision and command of the requesting chief of police or sheriff. Nothing contained in this section or sections 29-5-104 to 29-5-110 shall be construed to limit the power of any town, city, city and county, or state institution of higher education employing peace officers in accordance with article 7.5 of title 24, C.R.S., to prohibit or limit by ordinance the exercise by a chief of police or sheriff of the discretion granted in sections 29-5-103 to 29-5-110.