mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-17647 accesslib - cleaning some candoanything in comments. Merged from 19_STABLE
This commit is contained in:
parent
93cc3ea45e
commit
294c03a996
1 changed files with 2 additions and 2 deletions
|
@ -757,7 +757,7 @@ function has_capability_in_accessdata($capability, $context, $accessdata, $doany
|
|||
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;
|
||||
|
@ -850,7 +850,7 @@ function has_capability_in_accessdata($capability, $context, $accessdata, $doany
|
|||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue