The layout was not the right place to disable passport widget only for students. This has to be done in layout_application_edit.pt.