MDL-60766 block_calendar_month: hide nav when not logged in
[moodle.git] / blocks / calendar_month / block_calendar_month.php
index 657fe42..6e31b70 100644 (file)
@@ -51,7 +51,7 @@ class block_calendar_month extends block_base {
         $courseid = $this->page->course->id;
         $categoryid = ($this->page->context->contextlevel === CONTEXT_COURSECAT) ? $this->page->category->id : null;
         $calendar = \calendar_information::create(time(), $courseid, $categoryid);
-        list($data, $template) = calendar_get_view($calendar, 'mini');
+        list($data, $template) = calendar_get_view($calendar, 'mini', isloggedin());
 
         $renderer = $this->page->get_renderer('core_calendar');
         $this->content->text .= $renderer->render_from_template($template, $data);