Check if the user is logged in as teacher before export