Janaazah Salaah

Women participating in Janazah Salaah

Q: Recently in Fort Wayne Indiana during the Salatul Janaza of a brother the woman wanted to pray along but the Imam who is Hanfai and another Shiekah who is Maliki told them that the sisters do not need to pray the Janaza and its for men only. I'm form Pakistan and this what I saw all my life that only men did the Janaza.

Please give the correct ruling on this issue.