From 533299cbec6ad0446f854f5ce1dae7834b61ba39 Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Tue, 25 May 2010 03:34:08 +0000 Subject: [PATCH] navigation MDL-22425 Fixed minor bug when logged in as student and viewing a course without the view participants permission --- lib/navigationlib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/navigationlib.php b/lib/navigationlib.php index 45415428f7d..7fb9e262d19 100644 --- a/lib/navigationlib.php +++ b/lib/navigationlib.php @@ -1769,7 +1769,7 @@ class global_navigation extends navigation_node { if (!empty($CFG->enablenotes) && (has_capability('moodle/notes:manage', $this->page->context) || has_capability('moodle/notes:view', $this->page->context))) { $participants->add(get_string('notes','notes'), new moodle_url('/notes/index.php', array('filtertype'=>'course', 'filterselect'=>$filterselect))); } - } else if (count($this->extendforuser) > 0) { + } else if (count($this->extendforuser) > 0 || $this->page->course->id == $course->id) { $participants = $coursenode->add(get_string('participants'), null, self::TYPE_CONTAINER, get_string('participants'), 'participants'); }