From a73f4376db1d03f70cff4ab1214689c5ab7f19f3 Mon Sep 17 00:00:00 2001 From: Akhil Date: Wed, 6 Mar 2024 21:42:14 +0530 Subject: [PATCH] use getOwner --- patches/014-add-mail-usage.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/014-add-mail-usage.patch b/patches/014-add-mail-usage.patch index ca86e28f..0283a63b 100644 --- a/patches/014-add-mail-usage.patch +++ b/patches/014-add-mail-usage.patch @@ -29,7 +29,7 @@ } else { $free = $this->storage->free_space($path); - $quotaFree = max($this->getQuota() - $used, 0); -+ $ownerId = $this->storage->getUser()->getUID(); ++ $ownerId = $this->storage->getOwner($path); + $mailQuotaUsage = (int) \OC::$server->getConfig()->getUserValue($ownerId, 'ecloud-accounts', 'mailQuotaUsage', 0); + $mailQuotaUsage = max($mailQuotaUsage, 0); // to avoid negative mail quota usage value + $quotaFree = max($this->getQuota() - $used - $mailQuotaUsage, 0); -- GitLab