From 2b6e9e40dcf1582f5f04893650df240e3f46fdc9 Mon Sep 17 00:00:00 2001 From: Juan Leyva Date: Wed, 14 Oct 2015 14:06:05 +0200 Subject: [PATCH] MDL-51772 webservice: Export add_user_private_files as Web Service --- lib/db/services.php | 9 +++++++++ version.php | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/db/services.php b/lib/db/services.php index c9318ffc6cc..80f566f1b1f 100644 --- a/lib/db/services.php +++ b/lib/db/services.php @@ -465,6 +465,15 @@ $functions = array( 'capabilities'=> '', ), + 'core_user_add_user_private_files' => array( + 'classname' => 'core_user_external', + 'methodname' => 'add_user_private_files', + 'classpath' => 'user/externallib.php', + 'description' => 'Copy files from a draft area to users private files area.', + 'type' => 'write', + 'capabilities' => 'moodle/user:manageownfiles', + ), + // === enrol related functions === 'core_enrol_get_enrolled_users_with_capability' => array( diff --git a/version.php b/version.php index 3f0c5d07dcd..7a5a2ac4608 100644 --- a/version.php +++ b/version.php @@ -29,7 +29,7 @@ defined('MOODLE_INTERNAL') || die(); -$version = 2014111008.04; // 20141110 = branching date YYYYMMDD - do not modify! +$version = 2014111008.05; // 20141110 = branching date YYYYMMDD - do not modify! // RR = release increments - 00 in DEV branches. // .XX = incremental changes.