fix the premiumUploadSize validation to check the correct attribute

pull/1/head
ansuz 5 years ago
parent f3e6c6c36d
commit ee8d5c9c36

@ -38,7 +38,7 @@ if (!isPositiveNumber(config.defaultStorageLimit)) {
// premiumUploadSize is worthless if it isn't a valid positive number
// or if it's less than the default upload size
if (!isPositiveNumber(config.premiumUploadSize) || config.premiumUploadSize < config.defaultStorageLimit) {
if (!isPositiveNumber(config.premiumUploadSize) || config.premiumUploadSize < config.maxUploadSize) {
delete config.premiumUploadSize;
}

Loading…
Cancel
Save