Read 1 Corinthians 11:23-34.
St Paul was writing to the Church at Corinth where he learned that the Eucharistic Celebration, which was one in homes at that time, were being treated as a party with eating and drinking and where non-believers were attending and receiving the Eucharist.
It’s a far fetch to try and claim that a priest knows if a person is worthy to receive or not at a regular Mass and therefore correct in withholding Communion for this woman’s daughter.
Even Cardinal Dolan, when he was president of the USCCB, said he would never use the sacrament as a weapon to get people in line, when he was asked about refusing pro-choice Catholic politicians the sacrament,
Remember that when Jesus instituted the sacrament of the Holy Eucharist at the Last Supper, the Apostles were all sinners who had not attended any formal confession,