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

1  2 
mod/quiz/db/services.php

@@@ -43,7 -42,14 +43,15 @@@ $functions = array
          'methodname'    => 'view_quiz',
          'description'   => 'Trigger the course module viewed event and update the module completion status.',
          'type'          => 'write',
 -        'capabilities'  => 'mod/quiz:view'
 +        'capabilities'  => 'mod/quiz:view',
 +        'services'      => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
      ),
+     'mod_quiz_get_user_attempts' => array(
+         'classname'     => 'mod_quiz_external',
+         'methodname'    => 'get_user_attempts',
+         'description'   => 'Return a list of attempts for the given quiz and user.',
+         'type'          => 'read',
+         'capabilities'  => 'mod/quiz:view'
+     ),
  );