MDL-56818 messages: remove duplicated messaging enabled check

This commit is contained in:
Simey Lameze
2016-11-08 10:26:39 +08:00
parent 42fe364f41
commit 0b20349f32
-5
View 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();