Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2016-06-06 14:48:38 +0300
committerThomas Müller <DeepDiver1975@users.noreply.github.com>2016-06-06 14:48:38 +0300
commitafb4c1e694b45810780b5ac17b7f35940c604e0c (patch)
treed5720d32e2b4c0a3e20ecb52bb11134f8a3bd926 /lib
parent6e7eb87c809b26614f075b7a9f5e1304e677b9b4 (diff)
Allow public upload when the quota is unlimited (#24988)
Diffstat (limited to 'lib')
-rw-r--r--lib/private/helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/helper.php b/lib/private/helper.php
index 70c50bb7b4b..7a173520249 100644
--- a/lib/private/helper.php
+++ b/lib/private/helper.php
@@ -500,7 +500,7 @@ class OC_Helper {
*/
public static function freeSpace($dir) {
$freeSpace = \OC\Files\Filesystem::free_space($dir);
- if ($freeSpace !== \OCP\Files\FileInfo::SPACE_UNKNOWN) {
+ if ($freeSpace < \OCP\Files\FileInfo::SPACE_UNLIMITED) {
$freeSpace = max($freeSpace, 0);
return $freeSpace;
} else {