MDL-56818 messages: remove duplicated messaging enabled check
authorSimey Lameze <simey@moodle.com>
Wed, 2 Nov 2016 02:18:53 +0000 (10:18 +0800)
committerSimey Lameze <simey@moodle.com>
Tue, 8 Nov 2016 02:26:39 +0000 (10:26 +0800)
message/externallib.php

index ffdb18a..2ecaf66 100644 (file)
@@ -1713,11 +1713,6 @@ class core_message_external extends external_api {
     public static function get_blocked_users($userid) {
         global $CFG, $USER, $PAGE;
 
-        // Check if messaging is enabled.
-        if (empty($CFG->messaging)) {
-            throw new moodle_exception('disabled', 'message');
-        }
-
         // Warnings array, it can be empty at the end but is mandatory.
         $warnings = array();