Merge branch 'MDL-47474-27' of https://github.com/bostelm/moodle into MOODLE_27_STABLE
This commit is contained in:
@@ -175,7 +175,7 @@ $ical->add_property('method', 'PUBLISH');
|
||||
foreach($events as $event) {
|
||||
if (!empty($event->modulename)) {
|
||||
$cm = get_coursemodule_from_instance($event->modulename, $event->instance);
|
||||
if (!\core_availability\info_module::is_user_visible($cm, 0, false)) {
|
||||
if (!\core_availability\info_module::is_user_visible($cm, $userid, false)) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user