Skip to content

Commit

Permalink
MOBILE-1897 Backport badges WS
Browse files Browse the repository at this point in the history
  • Loading branch information
jleyva committed Dec 8, 2016
1 parent 13d33a0 commit 2a7c69b
Show file tree
Hide file tree
Showing 3 changed files with 120 additions and 862 deletions.
18 changes: 5 additions & 13 deletions db/services.php
Original file line number Diff line number Diff line change
Expand Up @@ -844,27 +844,20 @@
user.',
'type' => 'read',
),
'local_mobile_core_user_update_picture' => array(
'classname' => 'local_mobile_external',
'methodname' => 'core_user_update_picture',
'classpath' => 'local/mobile/externallib.php',
'description' => 'Update or delete the user picture in the site',
'type' => 'write',
'capabilities' => 'moodle/user:editownprofile, moodle/user:editprofile',
),
'local_mobile_tool_mobile_get_config' => array(
'classname' => 'local_mobile_external',
'methodname' => 'tool_mobile_get_config',
'classpath' => 'local/mobile/externallib.php',
'description' => 'Returns a list of the site configurations, filtering by section.',
'type' => 'read',
),
'local_mobile_core_course_check_updates' => array(
'local_mobile_core_badges_get_user_badges' => array(
'classname' => 'local_mobile_external',
'methodname' => 'core_course_check_updates',
'methodname' => 'core_badges_get_user_badges',
'classpath' => 'local/mobile/externallib.php',
'description' => 'Check if there is updates affecting the user for the given course and contexts.',
'description' => 'Returns the list of badges awarded to a user.',
'type' => 'read',
'capabilities' => 'moodle/badges:viewotherbadges',
),
);

Expand Down Expand Up @@ -928,10 +921,9 @@
'local_mobile_core_course_search_courses',
'local_mobile_core_course_get_user_navigation_options',
'local_mobile_core_course_get_user_administration_options',
'local_mobile_core_user_update_picture',
'local_mobile_mod_assign_view_assign',
'local_mobile_tool_mobile_get_config',
'local_mobile_core_course_check_updates',
'local_mobile_core_badges_get_user_badges',
'local_mobile_core_enrol_get_course_enrolment_methods',
'local_mobile_core_group_get_activity_allowed_groups',
'local_mobile_core_group_get_activity_groupmode',
Expand Down
Loading

0 comments on commit 2a7c69b

Please sign in to comment.