Would David and Bathsheba been allowed Communion in the RCC?
David and Bathsheba could receive Communion on the same grounds as anybody else: if they were licitly married (as they were after the death of Uriah), and if they repented of their sin (which they did), confessed and absolved.
And if they were baptized members of the Catholic Church!