Skip to content

Commit

Permalink
Merge branch 'MDL-70006' of git://github.com/danmarsden/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
sarjona committed Aug 24, 2021
2 parents c518362 + 34bdef0 commit 640c045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analytics/classes/local/target/base.php
Expand Up @@ -279,7 +279,7 @@ public function get_insights_users(\context $context) {
} else if ($context->contextlevel >= CONTEXT_COURSE) {
// At course level or below only enrolled users although this is not ideal for
// teachers assigned at category level.
$users = get_enrolled_users($context, 'moodle/analytics:listinsights');
$users = get_enrolled_users($context, 'moodle/analytics:listinsights', 0, 'u.*', null, 0, 0, true);
} else {
$users = get_users_by_capability($context, 'moodle/analytics:listinsights');
}
Expand Down

0 comments on commit 640c045

Please sign in to comment.