Removed method isTestingOnOcis, and refactored code

This commit is contained in:
Prarup Gurung
2023-03-13 12:08:42 +05:45
parent fd64718a7c
commit 06169628af
5 changed files with 12 additions and 63 deletions
@@ -5344,7 +5344,7 @@ trait WebDav {
if ($multistatusResults !== null) {
foreach ($multistatusResults as $multistatusResult) {
$entryPath = $multistatusResult['value'][0]['value'];
if (OcisHelper::isTestingOnOcis() && $method === "REPORT") {
if ($method === "REPORT") {
if ($entryNameToSearch !== null && str_ends_with($entryPath, $entryNameToSearch)) {
return $multistatusResult;
} else {