diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-06-06 11:28:52 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-06-06 11:28:52 +0200 |
commit | 2867d7a0f8377e0e803c8b7a7799b6d1e229deb4 (patch) | |
tree | dd1394a0ff48c243deac54b51e22cdaa36c046cb /apps | |
parent | c0a91ddca797c9821d3ce8771664b17ee588535f (diff) | |
parent | 5c8e0596e6cdea2d6407e2b21358bebf3bf16194 (diff) | |
download | nextcloud-server-2867d7a0f8377e0e803c8b7a7799b6d1e229deb4.tar.gz nextcloud-server-2867d7a0f8377e0e803c8b7a7799b6d1e229deb4.zip |
Merge pull request #24964 from owncloud/issue-24961-public-upload-unlimited
Allow public upload when the quota is unlimited
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/Controllers/ShareController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/Controllers/ShareController.php b/apps/files_sharing/lib/Controllers/ShareController.php index d6f497ed38e..96c0a0ca556 100644 --- a/apps/files_sharing/lib/Controllers/ShareController.php +++ b/apps/files_sharing/lib/Controllers/ShareController.php @@ -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 |