The top court made the judgment while hearing a petition filed by a Tamil Nadu woman, a government teacher, who was denied maternity leave after the birth of her child from her second marriage.