MDL-73354 mod_assign: General tidy up of tertiary navigation.

This commit is contained in:
Adrian Greeve 2022-01-12 14:52:52 +08:00
parent 5897242361
commit 33e6a36daf
5 changed files with 28 additions and 99 deletions

View file

@ -442,15 +442,6 @@ function assign_extend_settings_navigation(settings_navigation $settings, naviga
$navref->add_node($node, $beforekey);
}
// Link to gradebook.
if (has_capability('gradereport/grader:view', $cm->context) &&
has_capability('moodle/grade:viewall', $cm->context)) {
$link = new moodle_url('/grade/report/grader/index.php', array('id' => $course->id));
$linkname = get_string('viewgradebook', 'assign');
$node = $navref->add($linkname, $link, navigation_node::TYPE_SETTING);
$node->set_force_into_more_menu(true);
}
if (has_capability('mod/assign:revealidentities', $context)) {
$dbparams = array('id'=>$cm->instance);
$assignment = $DB->get_record('assign', $dbparams, 'blindmarking, revealidentities');