MDL-56514 core_message: remove messaging enabled check

This commit is contained in:
Simey Lameze 2016-11-01 14:15:32 +08:00
parent 326b285467
commit 56fa3e011a

View File

@ -2306,11 +2306,6 @@ class core_message_external extends external_api {
public static function get_user_notification_preferences($userid = 0) {
global $USER, $PAGE, $CFG;
// Check if messaging is enabled.
if (empty($CFG->messaging)) {
throw new moodle_exception('disabled', 'message');
}
$params = self::validate_parameters(
self::get_user_notification_preferences_parameters(),
array(