diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2016-06-06 14:48:38 +0300 |
---|---|---|
committer | Thomas Müller <DeepDiver1975@users.noreply.github.com> | 2016-06-06 14:48:38 +0300 |
commit | afb4c1e694b45810780b5ac17b7f35940c604e0c (patch) | |
tree | d5720d32e2b4c0a3e20ecb52bb11134f8a3bd926 /lib | |
parent | 6e7eb87c809b26614f075b7a9f5e1304e677b9b4 (diff) |
Allow public upload when the quota is unlimited (#24988)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/helper.php | 2 |
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 { |