Skip to content

Commit

Permalink
Merge pull request #46812 from nextcloud/refactor/files_trashbin/secu…
Browse files Browse the repository at this point in the history
…rity-attributes
  • Loading branch information
provokateurin authored Aug 14, 2024
2 parents 4920f90 + 220c6a2 commit 8c08ac0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions apps/files_trashbin/lib/Controller/PreviewController.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
use OCA\Files_Trashbin\Trash\ITrashManager;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\Attribute\NoAdminRequired;
use OCP\AppFramework\Http\Attribute\NoCSRFRequired;
use OCP\AppFramework\Http\DataResponse;
use OCP\AppFramework\Utility\ITimeFactory;
use OCP\Files\Folder;
Expand Down Expand Up @@ -61,9 +63,6 @@ public function __construct(
}

/**
* @NoAdminRequired
* @NoCSRFRequired
*
* Get the preview for a file
*
* @param int $fileId ID of the file
Expand All @@ -77,6 +76,8 @@ public function __construct(
* 400: Getting preview is not possible
* 404: Preview not found
*/
#[NoAdminRequired]
#[NoCSRFRequired]
public function getPreview(
int $fileId = -1,
int $x = 32,
Expand Down

0 comments on commit 8c08ac0

Please sign in to comment.