The effect of a central supermassive black hole on gas fuelling