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, ],