From: skodak Date: Sun, 20 Apr 2008 19:55:15 +0000 (+0000) Subject: MDL-8474 stats upgrade now uses editing teachers only; merged from MOODLE_19_STABLE X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e4703b032ff1f092b42f577f7764557b4908e760;p=moodle.git MDL-8474 stats upgrade now uses editing teachers only; merged from MOODLE_19_STABLE --- diff --git a/lib/statslib.php b/lib/statslib.php index 1b10e5c05c..36667a2ad6 100644 --- a/lib/statslib.php +++ b/lib/statslib.php @@ -1560,7 +1560,7 @@ function stats_upgrade_table_for_roles ($period) { } if (!$teacher_role_id) { - $role = get_roles_with_capability('moodle/legacy:teacher', CAP_ALLOW); + $role = get_roles_with_capability('moodle/legacy:editingteacher', CAP_ALLOW); $role = array_keys($role); $teacher_role_id = $role[0]; $role = get_roles_with_capability('moodle/legacy:student', CAP_ALLOW);