mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 02:46:40 +02:00
MDL-58720 course: Return restricted sections and modules in get_contents
core_course_get_contents was only checking for modules visible by the user (via uservisible). It was not checking for modules that are not visible for the user but should be displayed in the course because they have access restrictions configured.
This commit is contained in:
parent
faedb2736e
commit
935429e2a5
3 changed files with 82 additions and 39 deletions
|
@ -9,6 +9,9 @@ information provided here is intended especially for developers.
|
|||
- isexternalfile (if is a file reference to a external repository)
|
||||
- repositorytype (the repository name in case is a external file)
|
||||
Those fields are VALUE_OPTIONAL for backwards compatibility.
|
||||
* External function core_course_external::get_course_contents now return the following fields for section and modules:
|
||||
- uservisible (whether the section or module is visible by the user)
|
||||
- availabilityinfo (availability information if the course or module has any access restriction set
|
||||
|
||||
=== 3.2 ===
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue