Skip to content

Commit

Permalink
download: add UseSession annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
pulsejet committed Dec 8, 2022
1 parent ec21877 commit 057795b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Controller/AlbumsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ public function albums(int $t = 0): JSONResponse
/**
* @NoAdminRequired
*
* @UseSession
*
* Download an album as a zip file
*/
public function download(string $name = ''): JSONResponse
Expand Down
4 changes: 4 additions & 0 deletions lib/Controller/DownloadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ class DownloadController extends ApiBase
*
* @PublicPage
*
* @UseSession
*
* Request to download one or more files
*/
public function request(): JSONResponse
Expand All @@ -55,6 +57,8 @@ public function request(): JSONResponse
/**
* Get a handle for downloading files.
*
* The calling controller must have the UseSession annotation.
*
* @param string $name Name of zip file
* @param int[] $files
*/
Expand Down

0 comments on commit 057795b

Please sign in to comment.