fix overly broad config interpretation for daily check
parent
e6ec891d9a
commit
3d8e78a268
|
@ -36,7 +36,10 @@ Quota.applyCustomLimits = function (Env) {
|
|||
|
||||
Quota.updateCachedLimits = function (Env, cb) {
|
||||
Quota.applyCustomLimits(Env);
|
||||
if (Env.allowSubscriptions === false || Env.blockDailyCheck === true) { return void cb(); }
|
||||
if (Env.blockDailyCheck === true ||
|
||||
(typeof(Env.blockDailyCheck) === 'undefined' && Env.adminEmail === false && Env.allowSubscriptions === false)) {
|
||||
return void cb();
|
||||
}
|
||||
|
||||
var body = JSON.stringify({
|
||||
domain: Env.myDomain,
|
||||
|
|
Loading…
Reference in New Issue