mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
MDL-57455 mod_data: added missing accessibility check
This commit is contained in:
parent
ee9a2706b3
commit
f7a12344cb
@ -860,6 +860,11 @@ function mod_data_get_tagged_records($tag, $exclusivemode = false, $fromctx = 0,
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!$cm->uservisible) {
|
||||
$builder->set_accessible($item, false);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!has_capability('mod/data:viewentry', $context)) {
|
||||
$builder->set_accessible($item, false);
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user