From a56ffba6689a9b421ffafbcdfd1ec6d64446cab5 Mon Sep 17 00:00:00 2001 From: Juan Leyva Date: Wed, 14 Oct 2015 14:11:50 +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 8aadfe901a1..8d146a7239b 100644 --- a/lib/db/services.php +++ b/lib/db/services.php @@ -521,6 +521,15 @@ $functions = array( 'capabilities' => 'moodle/user:viewdetails', ), + '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 ca164657515..33840530325 100644 --- a/version.php +++ b/version.php @@ -29,7 +29,7 @@ defined('MOODLE_INTERNAL') || die(); -$version = 2015051102.04; // 20150511 = branching date YYYYMMDD - do not modify! +$version = 2015051102.05; // 20150511 = branching date YYYYMMDD - do not modify! // RR = release increments - 00 in DEV branches. // .XX = incremental changes.