From ba8afbdb073abe5ac038226fbc95a124aac569f4 Mon Sep 17 00:00:00 2001 From: David Monllao Date: Wed, 9 Mar 2016 15:18:11 +0800 Subject: [PATCH] MDL-52785 quiz: Adding mod_quiz_get_user_best_grade to mobile service --- mod/quiz/db/services.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mod/quiz/db/services.php b/mod/quiz/db/services.php index 12591be16b5..bdd52c7d90e 100644 --- a/mod/quiz/db/services.php +++ b/mod/quiz/db/services.php @@ -61,6 +61,7 @@ $functions = array( 'methodname' => 'get_user_best_grade', 'description' => 'Get the best current grade for the given user on a quiz.', 'type' => 'read', - 'capabilities' => 'mod/quiz:view' + 'capabilities' => 'mod/quiz:view', + 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE) ), );