Skip to content

Commit

Permalink
MDL-67471 message: fixed mark_notification_read with messaging disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
t-schroeder committed Feb 17, 2020
1 parent 2c0b08c commit be8cfe6
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions message/externallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -3626,11 +3626,6 @@ public static function mark_notification_read_parameters() {
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();

Expand Down

0 comments on commit be8cfe6

Please sign in to comment.