Skip to content

Commit

Permalink
MDL-70006 analytics: Don't send notifications to suspended enrolments.
Browse files Browse the repository at this point in the history
  • Loading branch information
danmarsden committed Aug 2, 2021
1 parent a0942c9 commit c231cb5
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 c231cb5

Please sign in to comment.