not showing moodle events in other users' lv plans

This commit is contained in:
adisposkofh
2026-07-08 11:41:58 +02:00
parent c69bb9ccaa
commit 8adc1c8bcc
@@ -418,6 +418,10 @@ class LvPlan extends FHCAPI_Controller
*/
private function fetchMoodleEvents($start_date, $end_date, $uid = null)
{
if ($uid && $uid !== getAuthUID()) {
return [];
}
$this->load->config('calendar');
$tz = new DateTimeZone($this->config->item('timezone'));