MDL-53773 tool_lp: Missing validate_context call in external function
Just sneaking that in as I noticed it while fixing RTL.
This commit is contained in:
@@ -279,6 +279,7 @@ class external extends external_api {
|
||||
|
||||
$competency = api::read_competency($params['competencyid']);
|
||||
$framework = api::read_framework($competency->get_competencyframeworkid());
|
||||
self::validate_context($framework->get_context());
|
||||
$renderable = new output\competency_summary($competency, $framework, $params['includerelated'], $params['includecourses']);
|
||||
$renderer = $PAGE->get_renderer('tool_lp');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user