IOWA CITY, Iowa -- A dentist acted legally when he fired an assistant that he found attractive simply because he and his wife viewed the woman as a threat to their marriage, the all-male Iowa Supreme Court ruled Friday.

The court ruled 7-0 that bosses can fire employees they see as an "irresistible attraction," even if the employees have not engaged in flirtatious behavior or otherwise done anything wrong. Such firings may be unfair, but they are not unlawful discrimination under the Iowa Civil Rights Act because they are motivated by feelings and emotions, not gender, Justice Edward Mansfield wrote.

An attorney for Fort Dodge dentist James Knight said the decision, the first of its kind in Iowa, is a victory for family values because Knight fired Melissa Nelson in the interest of saving his marriage, not because she was a woman.

But Nelson's attorney said Iowa's all-male high court, one of only a handful in the nation, failed to recognize the discrimination that women see routinely in the workplace.

"These judges sent a message to Iowa women that they don't think men can be held responsible for their sexual desires and that Iowa women are the ones who have to monitor and control their bosses' sexual desires," said attorney Paige Fiedler. "If they get out of hand, then the women can be legally fired for it."

Nelson, 32, worked for Knight for 10 years, and he considered her a stellar worker. But in the final months of her employment, he complained that her tight clothing was distracting, once telling her that if his pants were bulging that was a sign her clothes were too revealing, according to the opinion.

He also once allegedly remarked about her infrequent sex life by saying, "that's like having a Lamborghini in the garage and never driving it."

Knight and Nelson – both married with children – started exchanging text messages, mostly about personal matters, such as their families. Knight's wife, who also worked in the dental office, found out about the messages and demanded Nelson be fired. The Knights consulted with their pastor, who agreed that terminating Nelson was appropriate.

Knight fired Nelson and gave her one month's severance. He later told Nelson's husband that he worried he was getting too personally attached and feared he would eventually try to start an affair with her.

Nelson was stunned because she viewed the 53-year-old Knight as a father figure and had never been interested in starting a relationship, Fiedler said.

Nelson filed a lawsuit alleging gender discrimination, arguing she would not have been terminated if she was male. She did not allege sexual harassment because Knight's conduct may not have risen to that level and didn't particularly offend her, Fiedler said.

Knight argued Nelson was fired not because of her gender, but because her continued employment threatened his marriage. A district judge agreed, dismissing the case before trial, and the high court upheld that ruling.

Mansfield noted that Knight had an all-female workforce and Nelson was replaced by a woman.

He said the decision was in line with state and federal court rulings that found workers can be fired for relationships that cause jealousy and tension within a business owner's family. One such case from the 8th Circuit Court of Appeals upheld a business owner's firing of a valued employee who was seen by his wife as a threat to their marriage. In that case, the fired employee had engaged in flirtatious conduct.

Mansfield said allowing Nelson's lawsuit would stretch the definition of discrimination to allow anyone fired over a relationship to file a claim arguing they would not have been fired but for their gender.

Knight's attorney, Stuart Cochrane, said the court got it right. The decision clarified that bosses can make decisions showing favoritism to a family member without committing discrimination; in this case, by allowing Knight to honor his wife's wishes to fire Nelson, he said.

Knight is a very religious and moral individual, and he sincerely believed that firing Nelson would be best for all parties, he said.

"While there was really no fault on the part of Mrs. Nelson, it was just as clear the decision to terminate her was not related to the fact that she was a woman," he said. "The motives behind Dr. Knight terminating Mrs. Nelson were quite clear: He did so to preserve his marriage.

"I don't view this as a decision that was either pro-women or opposed to women rights at all. In my view, this was a decision that followed the appropriate case law."

Also on HuffPost:

Loading Slideshow...
  • Adding A Slice Of Cheese, Free Of Charge

    In 2009, a female Dutch McDonalds employee was fired after she gave a colleague a cheeseburger instead of the cheaper hamburger that had been paid for, <a href="http://www.telegraph.co.uk/foodanddrink/foodanddrinknews/7080767/McDonalds-wrong-to-fire-worker-over-cheese-slice.html" target="_hplink"><em>The Telegraph</em> reports.</a> A Dutch court ruled that the firing was too severe a punishment and ordered McDonald's to pay the ex-employee the full salary for what were the remaining five-months on her contract, as well as legal fees.

  • Smelling Like Smoke

    Stephanie Cannon was fired from her reception job at the Frauenshuh Cancer Center of Park Nicollet Health Services on the grounds that she smelled like smoke at work, <a href="http://kstp.com/news/stories/S2703953.shtml?cat=1" target="_hplink">KSTP-TV reports</a>. Cannon is a regular, pack-a-day smoker who told the local ABC affiliate that she never brought her habit with her to work.

  • Battling Cancer

    <a href="http://www.huffingtonpost.com/2012/09/06/judy-henderson-home-depot_n_1861595.html?1346951029" target="_hplink">Home Depot fired Judy Henderson</a> in 2010 after she told the company that she would extend her sick leave because of a cancerous tumor. The company agreed to pay $100,000 to Henderson, who had worked at Home Depot since 1997.

  • Nearly 50-Year Old 'Stupid Stunt'

    Wells Fargo <a href="http://www.huffingtonpost.com/2012/08/28/richard-eggers-wells-fargo_n_1836441.html?1346169626" target="_hplink">fired Richard Eggers</a> from his job of nearly 7 years in July after discovering that he was caught putting a cardboard cutout of a dime in a laundromat washing machine nearly 50 years ago.

  • Getting Cancer

    Former Tuesday Morning CEO Kathleen Mason claimed that <a href="http://www.huffingtonpost.com/2012/08/03/kathleen-mason-tuesday-morning_n_1738344.html?utm_hp_ref=business" target="_hplink">she was fired from her position after she disclosed to the company's board that she has cancer.</a> One board member even allegedly made fun of Ms. Mason's wig. Her charges are being taken to court as she sues her former employers for damages and reinstatement.

  • Eagles' Worker Fired For Facebook Update

    Philadelphia Eagles stadium operations worker Dan Leone was fired after he updated his Facebook status criticizing Eagles management for trading Brian Dawkins in 2009, <a href="http://news.cnet.com/8301-17852_3-10192227-71.html?tag=mncol;txt" target="_hplink">CNET reported.</a> Mr. Leone allegedly posted this: <blockquote>"Dan is ******* devastated about Dawkins signing with Denver...Dam Eagles are Retarded."</blockquote>

  • Sending EMAILS IN ALL-CAPS!

    In 2007, New Zealand resident Vicki Walker was fired from her job for sending emails in bold, red-underlined all-caps fonts, <a href="http://www.foxnews.com/tech/2009/09/01/new-zealand-woman-fired-sending-caps-e-mail/" target="_hplink">Fox News reports.</a> Walker was laterawarded $17,000 for wrongful termination.

  • Mocking Your Customers On Youtube

    Barista Christopher Cristwell was fired by Starbucks after he took his pent-up anger out on Youtube, <a href="http://www.dailymail.co.uk/news/article-2040748/Starbucks-sack-Christopher-Cristwell-YouTube-song-mocking-customers.html" target="_hplink"><em>The Daily Mail</em> reported.</a> Known as "The Starbucks Rant Song," Mr. Cristwell told his internet viewing audience that cappucino lovers were "the worst of all." A spokesman for Starbucks stated: <blockquote>'While Christopher was expressing his own views in the video, the disparaging remarks about our customers and company are unacceptable and out of line with our commitment to our customers and partners (employees).'</blockquote>

  • Being Too Fat

    Ronald Kratz II was fired from his job as a parts sorter after his employer determine that it interfered with his job performance, <a href="http://www.foxnews.com/us/2011/09/28/worker-allegedly-fired-for-being-overweight/" target="_hplink">Fox News reports.</a> Following his dismissal, Katz filed a complaint with the Equal Employment Opportunities Commission and lost over 300 pounds.

  • Giving The President The Finger

    Russian newsreader Tatyana Limanova was let go after she gave President Obama the finger on live television, <a href="http://www.telegraph.co.uk/news/worldnews/europe/russia/8918725/Russian-newsreader-fired-after-giving-Barack-Obama-finger-Firing-me-was-sense-of-humour-failure.html" target="_hplink"><em>The Telegraph</em> reports.</a> Limanova claims that the gesture was just a misunderstanding rather than an insult towards the leader of the free world.