Skip to content

Commit

Permalink
navigation MDL-22425 Fixed minor bug when logged in as student and vi…
Browse files Browse the repository at this point in the history
…ewing a course without the view participants permission
  • Loading branch information
Sam Hemelryk committed May 25, 2010
1 parent c4979f0 commit 533299c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/navigationlib.php
Expand Up @@ -1769,7 +1769,7 @@ public function add_course_essentials(navigation_node $coursenode, stdClass $cou
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');
}

Expand Down

0 comments on commit 533299c

Please sign in to comment.