If it is not too intrusive, the. I think you need to find out mre about her childcare plans. Bringing a baby to a class occasionally (for example when childcare breaks down) shouldn't be a problem.
But she is there to learn, and she cannot do that effectively if soothing a cranky baby. And even when tiny you cannot rely on babies being calm and sleepy, especially if poorly or just had jabs or are early teethers or atny of the other random things that can throw them completely off kilter for a while.
She needs, really needs, some sort of childcare. For contact hours and for some study time.
Now, even if the reality hadn't fully dawned on her during pg but she surely must have considered childcare at some point. What options does she have? What will she do if there does turn out to be some sort of institutional policy that bars children (and a complaint is made)?
Now, it can be difficult to arrange and expensive. But it's an area you might be able to help her with, or at least signpost to the people with pastoral responsibilities.
And work out what happens to keep her on track should she be unable to attend, or is frequently having to leave early (this might be the single thing that makes the biggest difference to whether she completes the course and gets an adequate result).