Removed isEmailEnabledSynchronous and switched the email disabled warnings to use ConfigStore
Этот коммит содержится в:
@@ -864,24 +864,3 @@ function getConfig(success, error) {
|
||||
});
|
||||
};
|
||||
module.exports.getConfig = getConfig;
|
||||
|
||||
module.exports.isEmailEnabledSynchronous = function() {
|
||||
var enabled = false;
|
||||
|
||||
$.ajax({
|
||||
async: false,
|
||||
url: '/api/v1/config/get/bypass_email',
|
||||
dataType: 'json',
|
||||
type: 'GET',
|
||||
success: function(value) {
|
||||
enabled = !value;
|
||||
},
|
||||
error: function(xhr, status, err) {
|
||||
if (status !== '200') {
|
||||
handleError('isEmailEnabled', xhr, status, err);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return enabled;
|
||||
};
|
||||
|
||||
Ссылка в новой задаче
Block a user