From 4745203bc0552971aad02e6bc255ea7611bdfb96 Mon Sep 17 00:00:00 2001 From: Tim Schroeder Date: Fri, 6 Dec 2019 11:42:19 +0100 Subject: [PATCH] MDL-67471 message: fixed mark_notification_read with messaging disabled --- message/externallib.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/message/externallib.php b/message/externallib.php index 3fbff4d2a2c..d9912915129 100644 --- a/message/externallib.php +++ b/message/externallib.php @@ -3620,11 +3620,6 @@ class core_message_external extends external_api { public static function mark_notification_read($notificationid, $timeread) { global $CFG, $DB, $USER; - // Check if private messaging between users is allowed. - if (empty($CFG->messaging)) { - throw new moodle_exception('disabled', 'message'); - } - // Warnings array, it can be empty at the end but is mandatory. $warnings = array();