Skip to content

Commit

Permalink
MDL-49313 webservices: Fixes and add the function to the mobile service
Browse files Browse the repository at this point in the history
  • Loading branch information
jleyva committed Apr 2, 2015
1 parent 90c3266 commit 6c785af
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions lib/db/services.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,23 +110,6 @@
'capabilities' => 'moodle/comment:view',
),

// Completion related functions.

'core_completion_get_activities_completion_status' => array(
'classname' => 'core_completion_external',
'methodname' => 'get_activities_completion_status',
'description' => 'Return the activities completion status for a user in a course.',
'type' => 'read',
'capabilities' => '',
),

'core_completion_get_course_completion_status' => array(
'classname' => 'core_completion_external',
'methodname' => 'get_course_completion_status',
'description' => 'Returns course completion status.',
'type' => 'read',
'capabilities' => 'moodle/user:viewuseractivitiesreport, report/completion:view',
),
// Grade related functions.

'core_grades_get_grades' => array(
Expand Down Expand Up @@ -1011,6 +994,22 @@
'description' => 'Update completion status for the current user in an activity, only for activities with manual tracking.',
'type' => 'write',
),

'core_completion_get_activities_completion_status' => array(
'classname' => 'core_completion_external',
'methodname' => 'get_activities_completion_status',
'description' => 'Return the activities completion status for a user in a course.',
'type' => 'read',
'capabilities' => '',
),

'core_completion_get_course_completion_status' => array(
'classname' => 'core_completion_external',
'methodname' => 'get_course_completion_status',
'description' => 'Returns course completion status.',
'type' => 'read',
'capabilities' => 'report/completion:view',
),
);

$services = array(
Expand Down Expand Up @@ -1075,6 +1074,7 @@
'core_course_view_course',
'core_completion_get_activities_completion_status',
'core_notes_get_course_notes',
'core_completion_get_course_completion_status',
),
'enabled' => 0,
'restrictedusers' => 0,
Expand Down

0 comments on commit 6c785af

Please sign in to comment.