]> source.dussan.org Git - nextcloud-server.git/commitdiff
Allow public upload when the quota is unlimited
authorJoas Schilling <nickvergessen@owncloud.com>
Thu, 2 Jun 2016 13:27:16 +0000 (15:27 +0200)
committerJoas Schilling <nickvergessen@owncloud.com>
Thu, 2 Jun 2016 13:27:16 +0000 (15:27 +0200)
apps/files_sharing/lib/Controllers/ShareController.php

index d6f497ed38e3862fb5d7e82bd1292addab4da534..96c0a0ca55695e893286827193b9b6fca99c0d81 100644 (file)
@@ -321,7 +321,7 @@ class ShareController extends Controller {
                         * The OC_Util methods require a view. This just uses the node API
                         */
                        $freeSpace = $share->getNode()->getStorage()->free_space($share->getNode()->getInternalPath());
-                       if ($freeSpace !== \OCP\Files\FileInfo::SPACE_UNKNOWN) {
+                       if ($freeSpace < \OCP\Files\FileInfo::SPACE_UNLIMITED) {
                                $freeSpace = max($freeSpace, 0);
                        } else {
                                $freeSpace = (INF > 0) ? INF: PHP_INT_MAX; // work around https://bugs.php.net/bug.php?id=69188