mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-34705 role assignments list: should link to contexts.
This will make Admin's lives a bit easier.
This commit is contained in:
parent
470d47f512
commit
970e01ba24
@ -165,7 +165,8 @@ function print_report_tree($contextid, $contexts, $systemcontext, $fullname, $al
|
||||
$context = context::instance_by_id($contextid);
|
||||
|
||||
// Print the context name.
|
||||
echo $OUTPUT->heading($context->get_context_name(), 4, 'contextname');
|
||||
echo $OUTPUT->heading(html_writer::link($context->get_url(), $context->get_context_name()),
|
||||
4, 'contextname');
|
||||
|
||||
// If there are any role assignments here, print them.
|
||||
foreach ($contexts[$contextid]->roleassignments as $ra) {
|
||||
@ -186,7 +187,7 @@ function print_report_tree($contextid, $contexts, $systemcontext, $fullname, $al
|
||||
}
|
||||
$a = new stdClass;
|
||||
$a->fullname = $fullname;
|
||||
$a->contextlevel = get_contextlevel_name($context->contextlevel);
|
||||
$a->contextlevel = $context->get_level_name();
|
||||
if ($context->contextlevel == CONTEXT_SYSTEM) {
|
||||
$strgoto = get_string('gotoassignsystemroles', 'role');
|
||||
$strcheck = get_string('checksystempermissionsfor', 'role', $a);
|
||||
|
Loading…
x
Reference in New Issue
Block a user