As an RN I would never stop a baby from coming in to be fed by it's mother. I can't think of one nurse on my general medical ward who would take visiting hours that seriously.
If you were my patient, I would try and get you into a sideward (a battle in itself because there are more cdiff and mrsa patients than sidewards at any given time).
Once in the sideward I would let your partner (or whomever) come and go with the baby as he/she pleases. I would be concerned about having the baby alone in the room with you as you would be recovering and not able to protect it from some of the other patients. I would also be concerned about infection.
Ideally it would be best for bub just to be able to stay in your room. But many hospital wards, even gynae wards, get medical patients who are confused, disorientated aggressive, and wander into other patients rooms. They cannot be reasoned with or re-orientated and you can't always just sedate them. Patients like this outnumber the nursing staff. They make the wards a very scary place and management will not throw the nursing staff a bone in the form of extra help and resources. They just won't. And they get away with it.
I had a patient like this make a beeline into a sideroom. Patient grabbed a table and threw it at the window. Scared the hell out of the poor elderly woman in the room. Shortly after this the same patient grabbed a bottle off of one patients side table and then sprayed it in the face of another patient. And guess what: the psyches refused to come in and see him, the medics refused to do anything because they felt that it was a psyche problem, and hospital management refused to send the nurses any help. Yes, they can do that. This kind of situation is a regular occurance.
This left only 2 small female nurses to deal with this patient as well as 30 others. Patients like this are more common than you think. And this is what makes the blood of the nursing staff run cold when people talk about having infants on the ward. It isn't due to laziness, indifference, or ignorance about breastfeeding on the part of the nursing staff. We know that we have more unpredictable and possibly aggressive patients than we can control. We also know that if anything happens to that infant we would be 100% liable.
This kind of thing is much more common on the medical wards where patients are sicker and have mulitple problems. But often gynae wards do take overflow medical patients. And they may have to take alcohol detoxers, people with psyche problems, and people with dementia. Sometimes people are just confused because of a medical problem and when that clears up so does their disorientation and aggressive behaviour.
But they really should allow visiting hours to be altered for you so that you can feed that baby. As long as your partner etc is there it shouldn't be a problem.
Ideally the managers would provide the nurses with an extra set of hands to keep an eye on things when an infant is on there ward. Guess what. They won't. And they ward nurse will be liable if anything happens.