Skip to content

Commit d59b902

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

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
@@ -95,6 +95,7 @@ private function formatFolder(array $folder): array {
9595
*
9696
* 200: Groupfolders returned
9797
*/
98+
#[RequireGroupFolderAdmin]
9899
#[NoAdminRequired]
99100
#[FrontpageRoute(verb: 'GET', url: '/folders')]
100101
public function getFolders(bool $applicable = false): DataResponse {
@@ -133,6 +134,7 @@ public function getFolders(bool $applicable = false): DataResponse {
133134
*
134135
* 200: Groupfolder returned
135136
*/
137+
#[RequireGroupFolderAdmin]
136138
#[NoAdminRequired]
137139
#[FrontpageRoute(verb: 'GET', url: '/folders/{id}')]
138140
public function getFolder(int $id): DataResponse {
@@ -479,6 +481,7 @@ private function folderDataForXML(array $data): array {
479481
*
480482
* 200: ACL Mappings returned
481483
*/
484+
#[RequireGroupFolderAdmin]
482485
#[NoAdminRequired]
483486
#[FrontpageRoute(verb: 'GET', url: '/folders/{id}/search')]
484487
public function aclMappingSearch(int $id, string $search = ''): DataResponse {

0 commit comments

Comments
Β (0)