mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
Merge branch 'MDL-47474' of https://github.com/bostelm/moodle
This commit is contained in:
commit
13f60ffce1
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user