Skip to content

Commit

Permalink
capability report: MDL-17410 did not work if a capability was not set…
Browse files Browse the repository at this point in the history
… anywhere.

Change it so that the system context is always shown.
  • Loading branch information
tjhunt committed Dec 3, 2008
1 parent 189f3ee commit 2aa3bae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/report/capability/index.php
Expand Up @@ -106,7 +106,7 @@
SELECT DISTINCT con.path, 1
FROM {context} con JOIN {role_capabilities} rc ON rc.contextid = con.id
WHERE capability = ? $sqlroletest", $params);
$requiredcontexts = array();
$requiredcontexts = array($systemcontext->id);
foreach ($relevantpaths as $path => $notused) {
$requiredcontexts = array_merge($requiredcontexts, explode('/', trim($path, '/')));
}
Expand Down

0 comments on commit 2aa3bae

Please sign in to comment.