From e453ed685c7fe23e2df7af1dd1446cd2751f2e6c Mon Sep 17 00:00:00 2001 From: Juan Leyva Date: Fri, 24 Mar 2017 17:04:58 +0100 Subject: [PATCH] MDL-57393 core_calendar: Add external functions to the mobile service We are including: - core_calendar_create_calendar_events - core_calendar_delete_calendar_events --- lib/db/services.php | 6 ++++-- version.php | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/db/services.php b/lib/db/services.php index 5ff30cdef28..ad30f32aa51 100644 --- a/lib/db/services.php +++ b/lib/db/services.php @@ -56,7 +56,8 @@ $functions = array( 'description' => 'Create calendar events', 'classpath' => 'calendar/externallib.php', 'type' => 'write', - 'capabilities' => 'moodle/calendar:manageentries, moodle/calendar:manageownentries, moodle/calendar:managegroupentries' + 'capabilities' => 'moodle/calendar:manageentries, moodle/calendar:manageownentries, moodle/calendar:managegroupentries', + 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE), ), 'core_calendar_delete_calendar_events' => array( 'classname' => 'core_calendar_external', @@ -64,7 +65,8 @@ $functions = array( 'description' => 'Delete calendar events', 'classpath' => 'calendar/externallib.php', 'type' => 'write', - 'capabilities' => 'moodle/calendar:manageentries, moodle/calendar:manageownentries, moodle/calendar:managegroupentries' + 'capabilities' => 'moodle/calendar:manageentries, moodle/calendar:manageownentries, moodle/calendar:managegroupentries', + 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE), ), 'core_calendar_get_calendar_events' => array( 'classname' => 'core_calendar_external', diff --git a/version.php b/version.php index 1561af33b76..4c9ad7ad148 100644 --- a/version.php +++ b/version.php @@ -29,7 +29,7 @@ defined('MOODLE_INTERNAL') || die(); -$version = 2017032400.00; // YYYYMMDD = weekly release date of this DEV branch. +$version = 2017032400.01; // YYYYMMDD = weekly release date of this DEV branch. // RR = release increments - 00 in DEV branches. // .XX = incremental changes.