diff options
author | provokateurin <kate@provokateurin.de> | 2024-07-25 13:24:59 +0200 |
---|---|---|
committer | provokateurin <kate@provokateurin.de> | 2024-07-26 07:30:45 +0200 |
commit | c57c3c15734c153d541247cc5fca198cb0e4f7b6 (patch) | |
tree | 2cccda08d45230601f8bb5f1e74b74195d826692 /core/Controller/SearchController.php | |
parent | 41f7fa6840a13cb2cb1c9d4ac1d3eca6012e22de (diff) | |
download | nextcloud-server-c57c3c15734c153d541247cc5fca198cb0e4f7b6.tar.gz nextcloud-server-c57c3c15734c153d541247cc5fca198cb0e4f7b6.zip |
refactor(core): Replace security annotations with respective attributes
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'core/Controller/SearchController.php')
-rw-r--r-- | core/Controller/SearchController.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/Controller/SearchController.php b/core/Controller/SearchController.php index 1ca8dd5dae4..166e2bad53b 100644 --- a/core/Controller/SearchController.php +++ b/core/Controller/SearchController.php @@ -10,6 +10,7 @@ namespace OC\Core\Controller; use OCP\AppFramework\Controller; use OCP\AppFramework\Http\Attribute\FrontpageRoute; +use OCP\AppFramework\Http\Attribute\NoAdminRequired; use OCP\AppFramework\Http\JSONResponse; use OCP\IRequest; use OCP\ISearch; @@ -26,9 +27,7 @@ class SearchController extends Controller { parent::__construct($appName, $request); } - /** - * @NoAdminRequired - */ + #[NoAdminRequired] #[FrontpageRoute(verb: 'GET', url: '/core/search')] public function search(string $query, array $inApps = [], int $page = 1, int $size = 30): JSONResponse { $results = $this->searcher->searchPaged($query, $inApps, $page, $size); |