Skip to content

Commit

Permalink
check in addition for folder existence at FolderManager
Browse files Browse the repository at this point in the history
Co-authored-by: Julius Härtl <[email protected]>
Signed-off-by: Maksim Sukharev <[email protected]>
  • Loading branch information
Antreesy and juliushaertl committed Jun 14, 2023
1 parent c49d345 commit 658f5e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Controller/FolderController.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ private function checkFolderExists(int $id): ?DataResponse {
if ($storageId === null) {
return new DataResponse([], Http::STATUS_NOT_FOUND);
}
$folder = $this->manager->getFolder($id, $storageId);
if ($folder === false) {
return new DataResponse([], Http::STATUS_NOT_FOUND);
}
return null;
}

Expand Down

0 comments on commit 658f5e9

Please sign in to comment.