simplify check-in deactivation
This commit is contained in:
parent
92896fb919
commit
2f00ff3278
@ -38,6 +38,7 @@ Quota.updateCachedLimits = function (Env, cb) {
|
|||||||
if (Env.adminEmail === false) {
|
if (Env.adminEmail === false) {
|
||||||
Quota.applyCustomLimits(Env);
|
Quota.applyCustomLimits(Env);
|
||||||
if (Env.allowSubscriptions === false) { return; }
|
if (Env.allowSubscriptions === false) { return; }
|
||||||
|
if (Env.blockDailyCheck === true) { return; }
|
||||||
throw new Error("allowSubscriptions must be false if adminEmail is false");
|
throw new Error("allowSubscriptions must be false if adminEmail is false");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -65,7 +65,9 @@ module.exports.create = function (config, cb) {
|
|||||||
WARN: WARN,
|
WARN: WARN,
|
||||||
flushCache: config.flushCache,
|
flushCache: config.flushCache,
|
||||||
adminEmail: config.adminEmail,
|
adminEmail: config.adminEmail,
|
||||||
allowSubscriptions: config.allowSubscriptions,
|
allowSubscriptions: config.allowSubscriptions === true,
|
||||||
|
blockDailyCheck: config.blockDailyCheck === true,
|
||||||
|
|
||||||
myDomain: config.httpUnsafeOrigin,
|
myDomain: config.httpUnsafeOrigin,
|
||||||
// XXX not included in the config...
|
// XXX not included in the config...
|
||||||
mySubdomain: config.mySubdomain,
|
mySubdomain: config.mySubdomain,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user