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 <[email protected]>
  • Loading branch information
provokateurin committed Jan 6, 2025
1 parent 7ecfebc commit d59b902
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 @@ -95,6 +95,7 @@ private function formatFolder(array $folder): array {
*
* 200: Groupfolders returned
*/
#[RequireGroupFolderAdmin]
#[NoAdminRequired]
#[FrontpageRoute(verb: 'GET', url: '/folders')]
public function getFolders(bool $applicable = false): DataResponse {
Expand Down Expand Up @@ -133,6 +134,7 @@ public function getFolders(bool $applicable = false): DataResponse {
*
* 200: Groupfolder returned
*/
#[RequireGroupFolderAdmin]
#[NoAdminRequired]
#[FrontpageRoute(verb: 'GET', url: '/folders/{id}')]
public function getFolder(int $id): DataResponse {
Expand Down Expand Up @@ -479,6 +481,7 @@ private function folderDataForXML(array $data): array {
*
* 200: ACL Mappings returned
*/
#[RequireGroupFolderAdmin]
#[NoAdminRequired]
#[FrontpageRoute(verb: 'GET', url: '/folders/{id}/search')]
public function aclMappingSearch(int $id, string $search = ''): DataResponse {
Expand Down

0 comments on commit d59b902

Please sign in to comment.