In any case in which the consent or approval of the department required by law for any crossing at grade is given, it may, after notice to the parties interested and a hearing, impose conditions, limitations, restrictions and regulations relative to such crossing, its construction and use, and may change and modify them.
Mass. Gen. Laws ch. 159, § 58