Restrict LRS dependent content if set

HFP-797
pull/36/head
thomasmars 2017-03-03 10:43:39 +01:00
parent 410c2a9ae1
commit 318b9f4819
1 changed files with 9 additions and 0 deletions

View File

@ -2907,6 +2907,15 @@ class H5PCore {
); );
} }
} }
// Restrict LRS dependent content
if (!$this->h5pF->getOption('enable_lrs_content_types')) {
foreach ($cached_libraries as &$lib) {
if ($lib['machineName'] === 'H5P.Questionnaire') {
$lib['restricted'] = TRUE;
}
}
}
} }
/** /**