in Moodle 1.5 / 1.6 I could easily find in the database who is teacher in some course X: Just look at mdl_user_teacher, find the userid of the wanted course with courseid X.
Now in Moodle 1.7 I have mdl_role_assignments where I can look for roleid (3=teacher) and userid and then get the corresponding contextid. What does the contextid mean? How can I find the corresponding course? In mdl_context I find a column contextlevel - what is that?
Can anyone give some advice?
Roles and permissions
Tracking roles from the database
This discussion has been locked because a year has elapsed since the last post. Please start a new discussion topic.