Allow public upload when the quota is unlimited
This commit is contained in:
parent
1ab7ee5e23
commit
5c8e0596e6
|
@ -321,7 +321,7 @@ class ShareController extends Controller {
|
||||||
* The OC_Util methods require a view. This just uses the node API
|
* The OC_Util methods require a view. This just uses the node API
|
||||||
*/
|
*/
|
||||||
$freeSpace = $share->getNode()->getStorage()->free_space($share->getNode()->getInternalPath());
|
$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);
|
$freeSpace = max($freeSpace, 0);
|
||||||
} else {
|
} else {
|
||||||
$freeSpace = (INF > 0) ? INF: PHP_INT_MAX; // work around https://bugs.php.net/bug.php?id=69188
|
$freeSpace = (INF > 0) ? INF: PHP_INT_MAX; // work around https://bugs.php.net/bug.php?id=69188
|
||||||
|
|
Loading…
Reference in New Issue