MDL-82244 course: use site default course visibility in external call.

This commit is contained in:
Paul Holden
2025-08-28 17:39:58 +01:00
parent 6509b43b4c
commit bd55b1668b
+6 -2
View File
@@ -896,8 +896,12 @@ class core_course_external extends external_api {
'showreports' => new external_value(PARAM_INT,
'are activity report shown (yes = 1, no =0)', VALUE_DEFAULT,
$courseconfig->showreports),
'visible' => new external_value(PARAM_INT,
'1: available to student, 0:not available', VALUE_OPTIONAL),
'visible' => new external_value(
PARAM_INT,
'1: available to student, 0: not available',
VALUE_DEFAULT,
$courseconfig->visible,
),
'hiddensections' => new external_value(PARAM_INT,
'(deprecated, use courseformatoptions) How the hidden sections in the course are displayed to students',
VALUE_OPTIONAL),