if ($can < 1) {
if ($doanything) {
// didn't find it as an explicit cap,
- // but maybe the user candoanything in this context...
+ // but maybe the user can doanything in this context...
return has_capability_in_accessdata('moodle/site:doanything', $context, $accessdata, false);
} else {
return false;
if ($can < 1) {
if ($doanything) {
// didn't find it as an explicit cap,
- // but maybe the user candoanything in this context...
+ // but maybe the user can doanything in this context...
return has_capability_in_accessdata('moodle/site:doanything', $context, $accessdata, false);
} else {
return false;