I´d say if the smell is only around the "personal space" of a person its ok. But if you can smell someone from 3 meter distance its too much. The thing is, that you hardly can ignore smell. So I have a working collegue who really smells bad during summer, so I think he is only washing himself every three days or so, and additional he tries to overdo the smell with horribble after shaves that are only worsening it. If this guy is in my office for more then 5 minutes, I cant breath anymore, and every breath I have to force myself to avoid puking. (Really.) So if you are stinking that much, that other people already have to puke because of being in the same room, it is simply too much.
When its about workers and restaurants I would depend on the restaurants. So there are restaurants where such smell fit less, so its more about "celebrating, fine" restaurants, that you usually visit after putting on fine cloths and so on. But there are also the more traditional restaurants in my country, that are less about optics and more about "getting a healthy and cheap meal for workers" and its pretty accepted in these restaurants if you dont smell like a fresh morning. On the country many of these worker restaurants are anyway part of a farm, so beside the smell of the animal stables and the muck heap, it doesnt matter any more if there is a person that smells the same way. ^^