From 5ca1a776498078c357ded2a4399a274c6eed805d Mon Sep 17 00:00:00 2001 From: David Monllao Date: Wed, 9 Mar 2016 15:12:10 +0800 Subject: [PATCH] MDL-52670 quiz: Adding function 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 da470cbfb37..687b315d0d6 100644 --- a/mod/quiz/db/services.php +++ b/mod/quiz/db/services.php @@ -52,6 +52,7 @@ $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) ), ); -- 2.43.0