diff options
author | Robin Appelman <robin@icewind.nl> | 2020-08-25 16:05:16 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2020-09-29 15:26:06 +0200 |
commit | dd1dbc2f3db7295a3cd8abe75e59ac3ecff6f605 (patch) | |
tree | b7417a9e4982c71d824ee2b2e1801cc459cdbab9 /lib | |
parent | 132b299ab2fa6a2df0b922871cfc9cbbb4508083 (diff) | |
download | nextcloud-server-dd1dbc2f3db7295a3cd8abe75e59ac3ecff6f605.tar.gz nextcloud-server-dd1dbc2f3db7295a3cd8abe75e59ac3ecff6f605.zip |
show better quota warning for group folders and external storage
instead of showing the generic 'Your storage is full' message, better explain that it's the group folder/external storage that is full
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/legacy/helper.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/legacy/helper.php b/lib/private/legacy/helper.php index 19c9ca7f91c..0f7b2d1b3af 100644 --- a/lib/private/legacy/helper.php +++ b/lib/private/legacy/helper.php @@ -494,7 +494,8 @@ class OC_Helper { $used = 0; } $quota = \OCP\Files\FileInfo::SPACE_UNLIMITED; - $storage = $rootInfo->getStorage(); + $mount = $rootInfo->getMountPoint(); + $storage = $mount->getStorage(); $sourceStorage = $storage; if ($storage->instanceOfStorage('\OCA\Files_Sharing\SharedStorage')) { $includeExtStorage = false; @@ -552,6 +553,7 @@ class OC_Helper { 'relative' => $relative, 'owner' => $ownerId, 'ownerDisplayName' => $ownerDisplayName, + 'mountType' => $mount->getMountType() ]; } |