mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
fixed group related typo in has_capability(); merged from MOODLE_17_STABLE
This commit is contained in:
parent
6bb4875f35
commit
b4a1805ab0
@ -402,8 +402,8 @@ function has_capability($capability, $context=NULL, $userid=NULL, $doanything=tr
|
||||
|
||||
$parentcats = get_parent_cats($courseinstance, CONTEXT_COURSE);
|
||||
foreach ($parentcats as $parentcat) {
|
||||
if (isset($capabilities[$parentcat->id]['do_anything'])) {
|
||||
$result = (0 < $capabilities[$parentcat->id]['do_anything']);
|
||||
if (isset($capabilities[$parentcat]['do_anything'])) {
|
||||
$result = (0 < $capabilities[$parentcat]['do_anything']);
|
||||
$capcache[$cachekey] = $result;
|
||||
return $result;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user