A student had their visa cancelled for links to 'weapons of