From 204916e434927d1b85d05ec00ce36600e325a286 Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Thu, 9 Jan 2025 12:10:41 +0800 Subject: [PATCH] MDL-73909 core_message: Update external services declaration --- lib/db/services.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/db/services.php b/lib/db/services.php index fb6a711dbfb..5de09c818d8 100644 --- a/lib/db/services.php +++ b/lib/db/services.php @@ -1645,7 +1645,8 @@ $functions = array( ], 'core_message_set_default_notification' => [ 'classname' => 'core_message\external\message_set_default_notification', - 'description' => 'Set the default notification preferences toggle', + 'description' => 'Set the default value for a given notification preference', + 'capabilities' => 'moodle/site:config', 'type' => 'write', 'ajax' => true, ],