Skip to content

Commit d536688

Browse files
(quota exceeded) Only log owner if not current user
Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
1 parent 984bcf8 commit d536688

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

apps/dav/lib/Connector/Sabre/QuotaPlugin.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,11 @@ public function checkQuota($path, $length = null) {
208208
if (isset($chunkHandler)) {
209209
$chunkHandler->cleanup();
210210
}
211-
throw new InsufficientStorage("Quota exceeded in $path (owner: $targetOwner), $length required, $freeSpace available");
211+
if ($targetOwner !== \OC_User::getUser()) {
212+
throw new InsufficientStorage("Quota exceeded in $path (owner: $targetOwner), $length required, $freeSpace available");
213+
} else {
214+
throw new InsufficientStorage("Quota exceeded in $path, $length required, $freeSpace available");
215+
}
212216
}
213217
}
214218
return true;

0 commit comments

Comments
 (0)