MDL-53917 tool_lp: Show course competency notice appropriately

Show course competency notice only if the user has a
moodle/competency:competencygrade capability.
This commit is contained in:
Jun Pataleta
2016-04-29 15:23:44 +08:00
parent 6bd3ab0717
commit e9b4bca0f8
3 changed files with 23 additions and 18 deletions
+1
View File
@@ -404,6 +404,7 @@ class external extends external_api {
'canmanagecompetencyframeworks' => new external_value(PARAM_BOOL, 'User can manage competency frameworks'),
'canmanagecoursecompetencies' => new external_value(PARAM_BOOL, 'User can manage linked course competencies'),
'canconfigurecoursecompetencies' => new external_value(PARAM_BOOL, 'User can configure course competency settings'),
'cangradecompetencies' => new external_value(PARAM_BOOL, 'User can grade competencies.'),
'settings' => course_competency_settings_exporter::get_read_structure(),
'statistics' => course_competency_statistics_exporter::get_read_structure(),
'competencies' => new external_multiple_structure(new external_single_structure(array(