MDL-8474 stats upgrade now uses editing teachers only

This commit is contained in:
skodak
2008-04-20 19:54:28 +00:00
parent a0b8e7637d
commit 1a19384b18
+1 -1
View File
@@ -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);