]> source.dussan.org Git - nextcloud-server.git/commitdiff
refactor(systemtags): Replace security annotations with respective attributes 46817/head
authorprovokateurin <kate@provokateurin.de>
Thu, 25 Jul 2024 11:14:50 +0000 (13:14 +0200)
committerprovokateurin <kate@provokateurin.de>
Sat, 27 Jul 2024 19:34:39 +0000 (21:34 +0200)
Signed-off-by: provokateurin <kate@provokateurin.de>
apps/systemtags/lib/Controller/LastUsedController.php

index 18e56c322f6a3d74e82c67b72ac651f31d092cb5..0dff3fa68de3073313a47054c1ad7d51befd829a 100644 (file)
@@ -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);