fix subject grades when a teacher is only assigned to some groups, but not all the students: can see all, but can only edit those assigned