From 32a40c729a52af88f121242c6b2c6b1cb6052831 Mon Sep 17 00:00:00 2001 From: provokateurin Date: Tue, 10 Dec 2024 14:16:01 +0100 Subject: [PATCH] fix(FolderController): Require Groupfolder admin on all endpoints Signed-off-by: provokateurin --- lib/Controller/FolderController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Controller/FolderController.php b/lib/Controller/FolderController.php index 0b3c9df88..e58a9e1e8 100644 --- a/lib/Controller/FolderController.php +++ b/lib/Controller/FolderController.php @@ -103,6 +103,7 @@ private function formatFolder(array $folder): array { /** * @NoAdminRequired + * @RequireGroupFolderAdmin */ public function getFolders(bool $applicable = false): DataResponse { $folders = $this->manager->getAllFoldersWithSize($this->getRootFolderStorageId()); @@ -123,6 +124,7 @@ public function getFolders(bool $applicable = false): DataResponse { /** * @NoAdminRequired + * @RequireGroupFolderAdmin */ public function getFolder(int $id): DataResponse { $response = $this->checkFolderExists($id); @@ -331,6 +333,7 @@ private function folderDataForXML(array $data): array { /** * @NoAdminRequired + * @RequireGroupFolderAdmin */ public function aclMappingSearch(int $id, ?int $fileId, string $search = ''): DataResponse { $users = [];