Said municipality shall have the right to grant franchises and prescribe the terms thereof, subject to such restrictions as may be imposed under the general law.