Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable30] fix(FolderController): Require Groupfolder admin on all endpoints #3517

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/Controller/FolderController.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ private function formatFolder(array $folder): array {
/**
* Gets all Groupfolders
* @NoAdminRequired
* @RequireGroupFolderAdmin
* @param bool $applicable Filter by applicable groups
* @return DataResponse<Http::STATUS_OK, array<string, GroupFoldersFolder>, array{}>
* @throws OCSNotFoundException Storage not found
Expand Down Expand Up @@ -132,6 +133,7 @@ public function getFolders(bool $applicable = false): DataResponse {
/**
* Gets a Groupfolder by ID
* @NoAdminRequired
* @RequireGroupFolderAdmin
* @param int $id ID of the Groupfolder
* @return DataResponse<Http::STATUS_OK, GroupFoldersFolder, array{}>|DataResponse<Http::STATUS_NOT_FOUND, list<empty>, array{}>
* @throws OCSNotFoundException Groupfolder not found
Expand Down Expand Up @@ -423,6 +425,7 @@ private function folderDataForXML(array $data): array {
/**
* Searches for matching ACL mappings
* @NoAdminRequired
* @RequireGroupFolderAdmin
* @param int $id The ID of the Groupfolder
* @param string $search String to search by
* @return DataResponse<Http::STATUS_OK, array{users: list<GroupFoldersUser>, groups: list<GroupFoldersGroup>}, array{}>
Expand Down
Loading