-
Bug
-
Resolution: Fixed
-
Minor
-
4.0.8
-
MOODLE_400_STABLE
-
MOODLE_400_STABLE, MOODLE_401_STABLE, MOODLE_402_STABLE
-
MDL-78364-401 -
We currently calculate the recipients to deliver scheduled reports to here:
There is a slight problem if any of the audiences from which the schedule is determining recipients has checks based on the current user (because we already switched users on L76-83). Note there are no audiences in Moodle LMS that are affected by this right now
We should calculate the recipients before any user switching happens. At the same time, we can get a small performance win, because if there are no reicipients then we don't need to spend any time running the report and exporting it to a file
Adding affects_workplace label, because this does affect our tenancy-related audiences (which depend on capabilities per-user) - we also have a partner (elearning.co.jp) who are reporting similar