MDL-67471 message: fixed mark_notification_read with messaging disabled

This commit is contained in:
Tim Schroeder 2019-12-06 11:42:19 +01:00
parent 2c0b08c5a7
commit be8cfe6bcc
No known key found for this signature in database
GPG Key ID: 44FD4F625FBA67CD

View File

@ -3626,11 +3626,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();