Merge branch 'wip-MDL-50568-master' of git://github.com/marinaglancy/moodle
authorDavid Monllao <davidm@moodle.com>
Mon, 22 Jun 2015 07:33:06 +0000 (15:33 +0800)
committerDavid Monllao <davidm@moodle.com>
Mon, 22 Jun 2015 07:33:06 +0000 (15:33 +0800)
lib/navigationlib.php

index 0ecca8a..549eb6d 100644 (file)
@@ -2604,7 +2604,7 @@ class global_navigation extends navigation_node {
         $coursenode->add('frontpageloaded', null, self::TYPE_CUSTOM, null, 'frontpageloaded')->display = false;
 
         //Participants
-        if (has_capability('moodle/course:viewparticipants',  context_system::instance())) {
+        if (has_capability('moodle/site:viewparticipants',  context_system::instance())) {
             $coursenode->add(get_string('participants'), new moodle_url('/user/index.php?id='.$course->id), self::TYPE_CUSTOM, get_string('participants'), 'participants');
         }