quiz/grading:viewidnumber is specifically about the manual grading interface. There is another one quiz/grading:viewname.
The piont of these capabilities is that you can use them to set up anonymous grading. Just remove those capabilites from teachers, and they will not see whose work they are grading.