MDL-69751 course: Handle missing guest user context
commit2939efff84a44d64ddbf0d7cbb4db8580e0d262a
authorMihail Geshoski <mihail@moodle.com>
Tue, 6 Oct 2020 05:24:05 +0000 (6 13:24 +0800)
committerMihail Geshoski <mihail@moodle.com>
Tue, 20 Oct 2020 00:31:43 +0000 (20 08:31 +0800)
tree55f5b44c5230c9423382855eb8e284066f52610c
parent149fdcf075fdf816b9e83f59e02a5ef20fa998fe
MDL-69751 course: Handle missing guest user context

Makes sure the guest user context exists when fetching
the recommended modules. If the context does not exist
an exception is being thrown describing the problem.
course/classes/local/service/content_item_service.php