Under section 25 of the Immigration and Refugee Protection Act an immigration officer may waive nearly any provision of the law if it is justified on humanitarian and compassionate grounds. The basic test is whether the applicant would experience unusual, undeserved or disproportionate hardship if required to leave Canada and return to their home country.