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

fix(FolderController): Require Groupfolder admin on all endpoints #3516

Closed
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 @@ -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
Loading