It is common problem that a teacher can't access student's grades if student is unenrolled from the course. So how to deny acces to certain students in a course while enabling acces to his grades? I solved this problem on Moodle v1.9.x in a way that I created new user role that has all functions forbidden and assigned that role to students in a course level. In that way students are not allow to access the course any more but the teacher can still see his grades. Unfortunately roles behavior changed in Moodle v2.x so this trick doesn't work any more. How to solve this problem in v2.x? Is there any workaround to deny access to the course for some (not all!) students while enabling teachers to assess their grades?
I'm surprised the trick you describe for 1.9 doesn't work in 2.x. What happens when you try it?
When I add a course level role with all options set to "prevent" to a student, he still can access the course as if he had only "student" role. Even if I remove all his course level roles, he still can access the course as long as he is enrolled in a course. It's clean Moodle installation with no customizations and no specific settings. Studetn doesn't have eny explicit global roles. Tried this with two Moodle sites and several student users.
Does anyone have a solution?