I've taken a few days to decide what to do about this, so I thought I'd ask other drivers on Reddit.
I was waiting for a collection at Five Guys. The restaurant was very quiet (1 table eating, 6-8 people on it).
There was 1 other courier there. He asked the cook if he could have the code to use the toilet facilities. The cook said no, toilets were for customers only. He didn't reply, got his order and went. I was not happy.
I asked the cook if I'd heard correctly that drivers can't use the toilets and he said yes, when asked why he shrugged his shoulders "policy" he said.
I asked for the manager and I told him I thought it was disgraceful to refuse someone the use of a toilet, and possibly illegal or very close to it.
And I asked him if it was company wide policy or just that restaurant.
He said it wasn't company wide, and that a couple of "them" had ruined it for everyone else because they were disrespectful to the female staff.
(He didn't specify who "them" were; but let me just say the driver refused was Asian, I'm white).
I suggested if he'd had problems with specific drivers they should be reported to Uber at least. No reply.
I told him that drivers are delivering their (Five Guys) food and we're acting as proxy employees and any decent person wouldn't refuse the basic human right of toilet use.
I'm still really annoyed by this a week later and wonder what other people's opinion is.
And fuck Five Guys from now on.