mirror of
https://github.com/moodle/moodle.git
synced 2025-03-20 07:30:01 +01:00
MDL-8474 stats upgrade now uses editing teachers only; merged from MOODLE_19_STABLE
This commit is contained in:
parent
3b4756653a
commit
e4703b032f
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user