Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'wip-MDL-28549-m21' of git://github.com/samhemelryk/mood…

…le into MOODLE_21_STABLE
  • Loading branch information...
commit 4b7783da19ac5a4649fb3469d9f93227fb4229ac 2 parents 489f5b1 + 63f81e0
@nebgor nebgor authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 lib/navigationlib.php
View
8 lib/navigationlib.php
@@ -2330,9 +2330,11 @@ public function add_front_page_course_essentials(navigation_node $coursenode, st
$coursenode->add(get_string('tags', 'tag'), new moodle_url('/tag/search.php'));
}
- // Calendar
- $calendarurl = new moodle_url('/calendar/view.php', array('view' => 'month'));
- $coursenode->add(get_string('calendar', 'calendar'), $calendarurl, self::TYPE_CUSTOM, null, 'calendar');
+ if (isloggedin()) {
+ // Calendar
+ $calendarurl = new moodle_url('/calendar/view.php', array('view' => 'month'));
+ $coursenode->add(get_string('calendar', 'calendar'), $calendarurl, self::TYPE_CUSTOM, null, 'calendar');
+ }
// View course reports
if (has_capability('moodle/site:viewreports', $this->page->context)) { // basic capability for listing of reports
Please sign in to comment.
Something went wrong with that request. Please try again.