Skip to content

Commit

Permalink
(quota exceeded) Only log owner if not current user
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Richards <[email protected]>
  • Loading branch information
joshtrichards authored and szaimen committed May 16, 2023
1 parent ee0753b commit 0111e55
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/dav/lib/Connector/Sabre/QuotaPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,11 @@ public function checkQuota($path, $length = null) {
if (isset($chunkHandler)) {
$chunkHandler->cleanup();
}
throw new InsufficientStorage("Quota exceeded in $path (owner: $targetOwner), $length required, $freeSpace available");
if ($targetOwner !== \OC_User::getUser()) {
throw new InsufficientStorage("Quota exceeded in $path (owner: $targetOwner), $length required, $freeSpace available");
} else {
throw new InsufficientStorage("Quota exceeded in $path, $length required, $freeSpace available");
}
}
}
return true;
Expand Down

0 comments on commit 0111e55

Please sign in to comment.