From dc89f0e95b31e39c32812ac38b926f003ff69390 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Tue, 8 Nov 2022 23:02:32 -0800 Subject: [PATCH] video: find file in user folder --- lib/Controller/VideoController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Controller/VideoController.php b/lib/Controller/VideoController.php index 4df66a40..48c2b389 100644 --- a/lib/Controller/VideoController.php +++ b/lib/Controller/VideoController.php @@ -54,7 +54,7 @@ class VideoController extends ApiBase } // Get file - $files = $this->rootFolder->getById($fileid); + $files = $this->rootFolder->getUserFolder($user->getUID())->getById($fileid); if (count($files) === 0) { return new JSONResponse(['message' => 'File not found'], Http::STATUS_NOT_FOUND); }