mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-56514 core_message: remove messaging enabled check
This commit is contained in:
parent
326b285467
commit
56fa3e011a
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user