A U.S. federal judge dismissed a recent class-action lawsuit against Apple, which claimed the company's policy to search the bags of its store workers when they leave the premises is demeaning and embarrassing to employees. However, U.S. District Judge William Alsup in San Francisco ruled in favor of Apple on Saturday.

According to Bloomberg:

Workers were free to choose to avoid searches by not bringing bags with them, U.S. District Judge William Alsup said in the ruling. "It is undisputed that some employees did not bring bags to work and thereby did not have to be searched when they left the store," he said.

The class-action lawsuit represented over 12,000 current and former Apple Store employees in California.

"Plaintiffs are disappointed in the court's ruling and are exploring their options, including an appeal," Lee Shalov, a lawyer for the workers, said in an e-mail.

Apple has not commented on the judge's decision.

Source: Bloomberg