From 641560004f425a608e64fe1cd77e596486b1f5e5 Mon Sep 17 00:00:00 2001 From: provokateurin Date: Thu, 25 Jul 2024 13:14:50 +0200 Subject: [PATCH] refactor(systemtags): Replace security annotations with respective attributes Signed-off-by: provokateurin --- apps/systemtags/lib/Controller/LastUsedController.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/systemtags/lib/Controller/LastUsedController.php b/apps/systemtags/lib/Controller/LastUsedController.php index 18e56c322f6..0dff3fa68de 100644 --- a/apps/systemtags/lib/Controller/LastUsedController.php +++ b/apps/systemtags/lib/Controller/LastUsedController.php @@ -6,6 +6,7 @@ namespace OCA\SystemTags\Controller; use OCP\AppFramework\Controller; +use OCP\AppFramework\Http\Attribute\NoAdminRequired; use OCP\AppFramework\Http\DataResponse; use OCP\IConfig; use OCP\IRequest; @@ -31,9 +32,7 @@ class LastUsedController extends Controller { $this->userSession = $userSession; } - /** - * @NoAdminRequired - */ + #[NoAdminRequired] public function getLastUsedTagIds() { $lastUsed = $this->config->getUserValue($this->userSession->getUser()->getUID(), 'systemtags', 'last_used', '[]'); $tagIds = json_decode($lastUsed, true); -- 2.39.5