From 1a19384b1821881e617d89a3e713b3ff42aacdfd Mon Sep 17 00:00:00 2001 From: skodak Date: Sun, 20 Apr 2008 19:54:28 +0000 Subject: [PATCH] MDL-8474 stats upgrade now uses editing teachers only --- lib/statslib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/statslib.php b/lib/statslib.php index 1b10e5c05c7..36667a2ad63 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);