diff --git a/out/out.AddMultiDocument.php b/out/out.AddMultiDocument.php index e15e88ed7..f220dbefc 100644 --- a/out/out.AddMultiDocument.php +++ b/out/out.AddMultiDocument.php @@ -41,7 +41,7 @@ if ($folder->getAccessMode($user) < M_READWRITE) { UI::exitError(getMLText("folder_title", array("foldername" => htmlspecialchars($folder->getName()))),getMLText("access_denied")); } -$remain = checkQuota(); +$remain = checkQuota($user); if ($remain < 0) { UI::exitError(getMLText("folder_title", array("foldername" => htmlspecialchars($folder->getName()))),getMLText("quota_exceeded", array('bytes'=>SeedDMS_Core_File::format_filesize(abs($remain))))); } diff --git a/out/out.UpdateDocument2.php b/out/out.UpdateDocument2.php index aa0b1e6bc..a6aafb164 100644 --- a/out/out.UpdateDocument2.php +++ b/out/out.UpdateDocument2.php @@ -43,7 +43,7 @@ if ($document->getAccessMode($user) < M_READWRITE) { UI::exitError(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName()))),getMLText("access_denied")); } -$remain = checkQuota(); +$remain = checkQuota($user); if ($remain < 0) { UI::exitError(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName()))),getMLText("quota_exceeded", array('bytes'=>SeedDMS_Core_File::format_filesize(abs($remain))))); } diff --git a/views/bootstrap/class.MyAccount.php b/views/bootstrap/class.MyAccount.php index 95ac656bc..eaf887005 100644 --- a/views/bootstrap/class.MyAccount.php +++ b/views/bootstrap/class.MyAccount.php @@ -45,7 +45,7 @@ class SeedDMS_View_MyAccount extends SeedDMS_Bootstrap_Style { $this->pageNavigation(getMLText("my_account"), "my_account"); if($quota > 0) { - if(($remain = checkQuota()) < 0) { + if(($remain = checkQuota($user)) < 0) { $this->warningMsg(getMLText('quota_warning', array('bytes'=>SeedDMS_Core_File::format_filesize(abs($remain))))); } }