diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-06-05 18:21:41 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-06-05 18:21:41 +0200 |
commit | 62ae39208a0deed71d4cd373c6822946fd489586 (patch) | |
tree | 219d97cf14af0afb43939aa403a5863838cbc794 /apps/files/lib | |
parent | 9899e10a0411d161db1b4e1302690ac74c1ae72c (diff) | |
download | nextcloud-server-62ae39208a0deed71d4cd373c6822946fd489586.tar.gz nextcloud-server-62ae39208a0deed71d4cd373c6822946fd489586.zip |
Add owner to the storage stats to enable better notifications
* getstoragestats.php returns now the owner and it's display name
* show proper storage stats notifications for shared folders
Diffstat (limited to 'apps/files/lib')
-rw-r--r-- | apps/files/lib/helper.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files/lib/helper.php b/apps/files/lib/helper.php index e966e60d00a..6bfdc0a095c 100644 --- a/apps/files/lib/helper.php +++ b/apps/files/lib/helper.php @@ -52,7 +52,9 @@ class Helper { 'uploadMaxFilesize' => $maxUploadFileSize, 'maxHumanFilesize' => $maxHumanFileSize, 'freeSpace' => $storageInfo['free'], - 'usedSpacePercent' => (int)$storageInfo['relative'] + 'usedSpacePercent' => (int)$storageInfo['relative'], + 'owner' => $storageInfo['owner'], + 'ownerDisplayName' => $storageInfo['ownerDisplayName'], ]; } |