AITA for telling my girlfriend not to come to my job ever?

My gf came to my job to ask if she could stay at my house since she locked out herself out of her house ( she has texted me but I couldn’t answer because I was busy). I wasn’t at my job and she told my co workers what happened and they told her to wait there until I got there and gave her a free drink.

I told her she should’ve called me instead and I also told her I don’t want her coming to my part time job ever. I really hate ur when she comes to my job because I feel like it’s an invasion of my private life. She said my co workers weren’t bothered by her staying and I told her they’re only nice to her because she’s my girlfriend. She then proceed to tell me I was being rude and I told her how was I being rude if I let her stay the night.

When I came home she seemed upset and she barely spoke to me.

AITA for telling not to come to my part time job?