fix the premiumUploadSize validation to check the correct attribute
This commit is contained in:
parent
f3e6c6c36d
commit
ee8d5c9c36
@ -38,7 +38,7 @@ if (!isPositiveNumber(config.defaultStorageLimit)) {
|
|||||||
|
|
||||||
// premiumUploadSize is worthless if it isn't a valid positive number
|
// premiumUploadSize is worthless if it isn't a valid positive number
|
||||||
// or if it's less than the default upload size
|
// 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;
|
delete config.premiumUploadSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user