In October 2020, the Alberta Court of Appeal ruled a federal "Customs Act" section dealing with inspection of goods violates the charter when it comes to searching digital devices. The court found the Canada Border Services Agency infringed on the rights of two men charged with pornography offences after a search of their cell phones at the Edmonton international airport. It wrote their rights were violated under s 8 of the "Charter of Rights and Freedoms", which says everyone has "the right to be secure against unreasonable search and seizure," and s 10, which specifies rights upon arrest or detention, including the right to consult a lawyer and the right to habeas corpus.