From 5770f10e0dcf2ac3b9764fedac2221dee6dd32b8 Mon Sep 17 00:00:00 2001 From: Juan Leyva Date: Mon, 30 Mar 2015 14:12:00 +0200 Subject: [PATCH] MDL-49499 user: Add core_user_view_user_profile to the mobile service --- lib/db/services.php | 10 ++++++++++ version.php | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/db/services.php b/lib/db/services.php index 0383b29e1e4..c650bbdb233 100644 --- a/lib/db/services.php +++ b/lib/db/services.php @@ -513,6 +513,15 @@ $functions = array( 'capabilities' => '', ), + 'core_user_view_user_profile' => array( + 'classname' => 'core_user_external', + 'methodname' => 'view_user_profile', + 'classpath' => 'user/externallib.php', + 'description' => 'Simulates the web-interface view of user/view.php and user/profile.php (triggering events).', + 'type' => 'write', + 'capabilities' => 'moodle/user:viewdetails', + ), + // === enrol related functions === 'core_enrol_get_enrolled_users_with_capability' => array( @@ -1068,6 +1077,7 @@ $services = array( 'core_course_view_course', 'core_completion_get_activities_completion_status', 'core_notes_get_course_notes', + 'core_user_view_user_profile', ), 'enabled' => 0, 'restrictedusers' => 0, diff --git a/version.php b/version.php index 385d10921d1..31a138f1061 100644 --- a/version.php +++ b/version.php @@ -29,7 +29,7 @@ defined('MOODLE_INTERNAL') || die(); -$version = 2015040200.00; // YYYYMMDD = weekly release date of this DEV branch. +$version = 2015040200.01; // YYYYMMDD = weekly release date of this DEV branch. // RR = release increments - 00 in DEV branches. // .XX = incremental changes. -- 2.43.0