mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Merge branch 'wip-MDL-50568-master' of git://github.com/marinaglancy/moodle
This commit is contained in:
commit
336bded4f1
1 changed files with 1 additions and 1 deletions
|
@ -2604,7 +2604,7 @@ class global_navigation extends navigation_node {
|
||||||
$coursenode->add('frontpageloaded', null, self::TYPE_CUSTOM, null, 'frontpageloaded')->display = false;
|
$coursenode->add('frontpageloaded', null, self::TYPE_CUSTOM, null, 'frontpageloaded')->display = false;
|
||||||
|
|
||||||
//Participants
|
//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');
|
$coursenode->add(get_string('participants'), new moodle_url('/user/index.php?id='.$course->id), self::TYPE_CUSTOM, get_string('participants'), 'participants');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue