Skip to content

Commit

Permalink
fix(FolderController): Require Groupfolder admin on all endpoints
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <kate@provokateurin.de>
  • Loading branch information
provokateurin committed Jan 6, 2025
1 parent 8b7cb03 commit 32a40c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Controller/FolderController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -123,6 +124,7 @@ public function getFolders(bool $applicable = false): DataResponse {

/**
* @NoAdminRequired
* @RequireGroupFolderAdmin
*/
public function getFolder(int $id): DataResponse {
$response = $this->checkFolderExists($id);
Expand Down Expand Up @@ -331,6 +333,7 @@ private function folderDataForXML(array $data): array {

/**
* @NoAdminRequired
* @RequireGroupFolderAdmin
*/
public function aclMappingSearch(int $id, ?int $fileId, string $search = ''): DataResponse {
$users = [];
Expand Down

0 comments on commit 32a40c7

Please sign in to comment.