Merge branch 'MDL-52785-master' of git://github.com/jleyva/moodle
authorDavid Monllao <davidm@moodle.com>
Wed, 9 Mar 2016 07:16:48 +0000 (15:16 +0800)
committerDavid Monllao <davidm@moodle.com>
Wed, 9 Mar 2016 07:16:48 +0000 (15:16 +0800)
Conflicts:
lib/db/services.php

1  2 
mod/quiz/db/services.php

@@@ -52,7 -50,14 +52,15 @@@ $functions = array
          'methodname'    => 'get_user_attempts',
          'description'   => 'Return a list of attempts for the given quiz and user.',
          'type'          => 'read',
 -        'capabilities'  => 'mod/quiz:view'
 +        'capabilities'  => 'mod/quiz:view',
 +        'services'      => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
      ),
+     'mod_quiz_get_user_best_grade' => array(
+         'classname'     => 'mod_quiz_external',
+         'methodname'    => 'get_user_best_grade',
+         'description'   => 'Get the best current grade for the given user on a quiz.',
+         'type'          => 'read',
+         'capabilities'  => 'mod/quiz:view'
+     ),
  );