MDL-52785 quiz: Adding mod_quiz_get_user_best_grade to mobile service
authorDavid Monllao <davidm@moodle.com>
Wed, 9 Mar 2016 07:18:11 +0000 (15:18 +0800)
committerDavid Monllao <davidm@moodle.com>
Wed, 9 Mar 2016 07:18:11 +0000 (15:18 +0800)
mod/quiz/db/services.php

index 12591be..bdd52c7 100644 (file)
@@ -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)
     ),
 );