I am open to correction but my understanding is there is no such law. Food establishments do have to have toilet facilities but operators are permitted to refuse entry to the premises to anyone as long as it's not discriminatory. As a result, many operators operate a "customers only" policy.