He logged onto my 360 as well but I can't play games online with that console.
I may be mistaken, because I'm not entirely sure how the system works, but I don't believe Xbox Live sharing works on the Xbox 360.
Each individual account needs Gold to play online.
On the Xbox One only one account on the console needs Gold to play online, unless you turn off sharing.