MDL-58333 core_calendar: Make WS available to Mobile
authorAndrew Nicols <andrew@nicols.co.uk>
Fri, 24 Mar 2017 00:07:13 +0000 (08:07 +0800)
committerDan Poltawski <dan@moodle.com>
Tue, 4 Apr 2017 10:01:43 +0000 (11:01 +0100)
Part of MDL-55611 epic.

lib/db/services.php

index e18b932..a1622d2 100644 (file)
@@ -83,6 +83,7 @@ $functions = array(
         'type' => 'read',
         'capabilities' => 'moodle/calendar:manageentries, moodle/calendar:manageownentries, moodle/calendar:managegroupentries',
         'ajax' => true,
+        'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
     ),
     'core_calendar_get_action_events_by_course' => array(
         'classname' => 'core_calendar_external',
@@ -92,6 +93,7 @@ $functions = array(
         'type' => 'read',
         'capabilities' => 'moodle/calendar:manageentries, moodle/calendar:manageownentries, moodle/calendar:managegroupentries',
         'ajax' => true,
+        'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
     ),
     'core_calendar_get_action_events_by_courses' => array(
         'classname' => 'core_calendar_external',
@@ -101,6 +103,7 @@ $functions = array(
         'type' => 'read',
         'capabilities' => 'moodle/calendar:manageentries, moodle/calendar:manageownentries, moodle/calendar:managegroupentries',
         'ajax' => true,
+        'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
     ),
     'core_cohort_add_cohort_members' => array(
         'classname' => 'core_cohort_external',