How can type 2 diabetes affect your eyesight?

My mom has type 2 diabetes and she was told it could affect her eyes. I was just wondering what that meant?