Actually, yes. A ex-employer, even if a restaurant, can do this. Generally speaking, a business may decide who receives its services. However, there are certain exceptions for places of public accomodation which may not engage in any form of "legally actionable discrimination". That having been said, even places of public accomodation are permitted to bar people for non-discriminatory reasons, such as that a person was a former employee who left on bad terms.