mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
refactor(files_trashbin): Replace security annotations with respective attributes
Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
parent
212a621697
commit
220c6a2bd9
1 changed files with 4 additions and 3 deletions
|
|
@ -11,6 +11,8 @@ namespace OCA\Files_Trashbin\Controller;
|
|||
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;
|
||||
|
|
@ -61,9 +63,6 @@ class PreviewController extends Controller {
|
|||
}
|
||||
|
||||
/**
|
||||
* @NoAdminRequired
|
||||
* @NoCSRFRequired
|
||||
*
|
||||
* Get the preview for a file
|
||||
*
|
||||
* @param int $fileId ID of the file
|
||||
|
|
@ -77,6 +76,8 @@ class PreviewController extends Controller {
|
|||
* 400: Getting preview is not possible
|
||||
* 404: Preview not found
|
||||
*/
|
||||
#[NoAdminRequired]
|
||||
#[NoCSRFRequired]
|
||||
public function getPreview(
|
||||
int $fileId = -1,
|
||||
int $x = 32,
|
||||
|
|
|
|||
Loading…
Reference in a new issue