MDL-67585 core_course: add user param to course_allowed_module
authorJake Dallimore <jake@moodle.com>
Tue, 21 Jan 2020 05:21:48 +0000 (13:21 +0800)
committerJake Dallimore <jake@moodle.com>
Thu, 20 Feb 2020 01:28:57 +0000 (09:28 +0800)
commit8210186372c5968788758e56e1838239c5570880
treef444c6fffe088ec42b6b9eb09cbb9d758c6ce379
parenteec2d09f84d47ef1118b530583da781a844f5117
MDL-67585 core_course: add user param to course_allowed_module

We want to be able to call this for a user, not rely on a global.
course/lib.php
course/tests/courselib_test.php