Skip to content

Commit 2fc0559

Browse files
committed
fix(FolderController): Require Groupfolder admin on all endpoints
Signed-off-by: provokateurin <[email protected]>
1 parent 942f006 commit 2fc0559

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

β€Žlib/Controller/FolderController.php

+3
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ private function formatFolder(array $folder): array {
103103

104104
/**
105105
* @NoAdminRequired
106+
* @RequireGroupFolderAdmin
106107
*/
107108
public function getFolders(bool $applicable = false): DataResponse {
108109
$folders = $this->manager->getAllFoldersWithSize($this->getRootFolderStorageId());
@@ -123,6 +124,7 @@ public function getFolders(bool $applicable = false): DataResponse {
123124

124125
/**
125126
* @NoAdminRequired
127+
* @RequireGroupFolderAdmin
126128
*/
127129
public function getFolder(int $id): DataResponse {
128130
$response = $this->checkFolderExists($id);
@@ -331,6 +333,7 @@ private function folderDataForXML(array $data): array {
331333

332334
/**
333335
* @NoAdminRequired
336+
* @RequireGroupFolderAdmin
334337
*/
335338
public function aclMappingSearch(int $id, ?int $fileId, string $search = ''): DataResponse {
336339
$users = [];

0 commit comments

Comments
Β (0)