catalyst / moodle-mod_reengagement

Allows timed release of content and emails users to remind them to complete a course activity
23 stars 39 forks source link

Fix incorrect user being checked for access restrictions. #120

Closed cwarwicker closed 2 years ago

cwarwicker commented 2 years ago

By moving this code into the user loop and passing through the userid it ensures the correct user is loaded into the modinfo object, which is used in some access conditions for their checks (e.g. availability_group).

Fixes: #73

cwarwicker commented 2 years ago

Please see my notes on #73 for info on this patch: https://github.com/catalyst/moodle-mod_reengagement/issues/73#issuecomment-1119742191

danmarsden commented 2 years ago

merged in manually - thanks!