Merge pull request #22906 from owncloud/stable9-quota-allowuploadwhenfreespaceisunlimited

[stable9] Fix uploading to fed shares where free space is unlimited
This commit is contained in:
Thomas Müller 2016-03-07 14:58:31 +01:00
commit 6bfeb4595d
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ $maxHumanFileSize = OCP\Util::humanFileSize($maxUploadFileSize);
$totalSize = 0; $totalSize = 0;
$isReceivedShare = \OC::$server->getRequest()->getParam('isReceivedShare', false) === 'true'; $isReceivedShare = \OC::$server->getRequest()->getParam('isReceivedShare', false) === 'true';
// defer quota check for received shares // defer quota check for received shares
if (!$isReceivedShare) { if (!$isReceivedShare && $storageStats['freeSpace'] >= 0) {
foreach ($files['size'] as $size) { foreach ($files['size'] as $size) {
$totalSize += $size; $totalSize += $size;
} }