]> git.mjollnir.org Git - moodle.git/commit
lib/deprecatedlib: enrol/manual: Fix calls to get_users_by_capability() to avoid ra
authormartinlanghoff <martinlanghoff>
Sun, 6 Jan 2008 23:25:26 +0000 (23:25 +0000)
committermartinlanghoff <martinlanghoff>
Sun, 6 Jan 2008 23:25:26 +0000 (23:25 +0000)
commit1113f8002ac30693e862a59ea7cde310dd5189b1
treeba2ff43066375ba2a8cd346e6a0ad4109ac70448
parent0d8466509dad1c9eac1f552b47792f8b1da28b5a
lib/deprecatedlib: enrol/manual: Fix calls to get_users_by_capability() to avoid ra

get_users_by_capability() can no longer refer to properties of role
assignments or roles, as the capability aggregate is indirect.

Fixes:
 get_teacher() - though the results will be poor, as we cannot provide
                 role.sortorder reliably
 (used mainly by mod/workshop)
 get_course_teachers() - which seems broken for a lot of situations as
                 its default parameters still refer to old tables.

MDL-12452
lib/deprecatedlib.php