Hello,
Apologies if this has been discussed but I haven't been able find it by searching.
This situation with roles confuses me in Moodle 2:
- As admin, manually enrol User A onto a course as Student
- Look at the list of enrolled users. User A is listed, with the role Student and the enrolment method Manual Enrolments.
- Delete the Student role. They remain in the list of "enrolled users", still with the enrolment method, but no role.
- Now log on as User A and go to the course. You can enter it, but you can't do anything, as if you were a guest.
So here's my question. Does User A have a role in the course? If not, what do they have? It seems clear that they have the course:view capability for the course, but capabilities are assigned in the context of roles, so what role do they have, and in what context?
Or, are capabilities now assigned via attributes other than roles? It seems clear that the "enrolment method" is an attribute, distinct from role, that can be assigned to a user (since we can remove it from their entry in the enrolled users list). So perhaps enrolment methods themselves also confer capabilities on a user?
It's all rather confusing.
Steve