FLORENCE, Colo. – A Colorado school district cancel its contract with a local church to use school facilities for worship as part of a settlement with a teacher who complained about the relationship.

Robert Basevitz sued the Fremont RE-2 School District for religious discrimination this spring over complaints about religion-based student activities at Florence High School where he worked.

MORE NEWS: Know These Before Moving From Cyprus To The UK

Basevitz, who is Jewish, alleged in the lawsuit that he faced discrimination because of the school’s relationship with the Cowboy Church at the Crossroads, which rented the school’s cafeteria for Sunday services and supported student groups, ABC 7 reports.

Students gathered at the school flag pole each morning when someone from Cowboy Church would lead prayer, students with The Fellowship of Christian Huskies would gather for “Jesus pizza” at lunch time, and literature about the club and church was distributed on campus, the lawsuit alleges.

“During the morning prayer they just stand there and kids come over, kids go by, they say, ‘Good morning’ to kids,'” Florence principal Brian Schipper, a sponsor of the student club and defendant in the lawsuit, told ABC 7. “It doesn’t get in the way of anybody getting into school. They make a point to stay out of the way of everybody, actually.”

Basevitz alleges that when he confronted school officials about the flag pole prayers blocking the school’s front entrance, officials said he could use the side entrance.

“In an apparent attempt to ostracize [Basevitz], Defendants informed staff and students of Mr. Basevitz’s complaint and his Jewish heritage,” the lawsuit states, according to ABC 7. “On January 9, 2015, [Basevitz] overheard a student saying, ‘we can’t do Jesus Pizza because Mr. B. is Jewish.’”

“When he complained about these activities, which are clearly illegal, he was shown the door, and transferred to a different school,” Basevitz’ attorney, Paul Maxon, alleges.

MORE NEWS: How to prepare for face-to-face classes

“Plaintiff asks that defendants’ actions be declared unconstitutional and illegal, and that this court enjoin them from engaging in any further such activity,” the lawsuit read, according to Christian Today.

Basevitz filed the lawsuit with the help of the infamous Freedom From Religion Foundation atheist group. FFRF spends a lot of time and money threatening and suing small school districts and municipalities around the country. Its apparent mission is to eradicate all signs of religion from public life.

Cowboy Church pastor Randy Pfaff told the Christian Post the lawsuit is based on “lies.”

“They were lies. That is exactly what they were,” Pfaff said. “I have never met the man. He said that I was preaching at him and doing things and that I was offensive to him, but I have never met him and never had any communication. I don’t even know who he is. I couldn’t pick him out.”

Pfaff said the morning flag pole gatherings and free pizza days were open to all students and staff, regardless of religion.

“He was certainly welcome to join us around the flagpole or come and get a piece of pizza on Wednesday and leave,” Pfaff said. “All kinds of faiths did that but for some reason he didn’t want to.”

The school district and Basevitz came to a settlement this week that prohibits the district from allowing any group to use any school facility if it “impairs the district’s ability to carry out its educational mission, including groups that create a reasonable risk of liability for violation of constitutional mandates.”

“The agreement also lists nine other stipulations such as a ban on school employees engaging in religious activities and prayer with students, a ban on school-sponsored religious expression, a ban on school-sponsored prayer box requests, and a ban on all gatherings that involve prayer — including the gathering at the flagpole,” according to the Post.

Essentially, the district canceled its relationship with Cowboy Church, which has contributed about $20,000 to $25,000 to the school over the last three years, Pfaff said.

“Our church gave out 31 college scholarships to kids that none of them go to our church. We were very involved with the school, and that was God that opened the doors and paved the way and we were excited to be used by Him there,” Pfaff told the Post. “The school district, the school board, the superintendent, principal were so happy with the things that were going on and all of a sudden, this happened.”

Pfaff said The Liberty Institute, a legal firm that defends religious expression, will help Cowboy Church determine its next move, but he’s disappointed by the school district’s decision.

“I know that they got intimidated by the teachers’ union and an attorney and they didn’t know which direction to take,” Pfaff said. “I think they are making a bad decision here and not doing what is right.”