Mexican restaurant chain Chipotle fired one of its managers after an online video surfaced showing the employee refusing to serve a group of black men unless they pay up front — — but then rehired her when it was revealed that man previously ditched the check.

The unidentified manager of a Chipotle restaurant in St. Paul, Minnesota, was seen in a viral clip posted to Twitter smiling and saying, “You gotta pay because you never have money when you come in here,” to the group of customers.

The group of five men were noticeably offended by the comments, telling other workers they were being “stereotyped” as they filmed themselves in the eatery, according to the clip, which has been viewed more than 6.4 million times since it was posted Friday by one of the customers.

Another worker in the video later tells the group, “We’re not gonna make food unless you guys actually have money.”

Masud Ali, the customer who posted a series of videos of the incident to his Twitter account, accused the female manager who refused to serve him and his friends of racism.

“It sounded really racist — the way she said it was racist,” Ali, 21, told The Star Tribune. “She asked for proof of income as if I’m getting a loan.”

Chipotle was quick to terminate the manager

Following the termination, other Twitter users came to the defense of the manager, pointing out tweets posted to Ali’s Twitter account boasting about “dining and dashing” or ordering food at a restaurant and leaving without paying.

The revelation apparently prompted Chipotle to reconsider its hasty firing of the manager.

“We have spent the last few days reviewing the evidence available to us regarding the incident in St. Paul, MN,” Laurie Schalow, Chipotle’s chief communications officer, told The Washington Post.

“Based on our review, we have offered our manager her job back. While our normal protocol was not followed serving these customers, we publicly apologize to our manager for being put in this position.”