usergrad.p will take the current user (as defined in common.i) and see if they are allowed to work with a grade. If so, then TRUE is returned.
The way this works is that if they have no user-grade record for this grade, but they have entries for any other grades, they are not allowed into this grade. If they have absolutely no user-grade records or the have one for this grade, they are allowed into the grade.