Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

security overview MDL-20834 Added support for role aliases in courses

  • Loading branch information...
commit 8ee5b976b1a10571daab601f8834a129b0f8ad97 1 parent f9e1d25
@moodler moodler authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  admin/report/security/lib.php
View
3  admin/report/security/lib.php
@@ -1170,6 +1170,9 @@ function report_security_check_riskbackup($detailed=false) {
$links = array();
foreach ($overriddenroles as $role) {
$context = get_context_instance_by_id($role->contextid);
+ if ($context->contextlevel == CONTEXT_COURSE) {
+ $role->name = role_get_name($role, $context);
+ }
$role->contextname = print_context_name($context);
$role->url = "$CFG->wwwroot/$CFG->admin/roles/override.php?contextid=$role->contextid&roleid=$role->id";
$links[] = '<li>'.get_string('check_riskbackup_editoverride', 'report_security', $role).'</li>';
Please sign in to comment.
Something went wrong with that request. Please try again.