aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorprovokateurin <kate@provokateurin.de>2024-07-25 13:14:50 +0200
committerprovokateurin <kate@provokateurin.de>2024-07-27 21:34:39 +0200
commit641560004f425a608e64fe1cd77e596486b1f5e5 (patch)
tree567d5b606c6c4b25d5b783057e192531c7a09887 /apps
parent212a621697cd32b65ea78fa90015cec9d9d1dfe3 (diff)
downloadnextcloud-server-641560004f425a608e64fe1cd77e596486b1f5e5.tar.gz
nextcloud-server-641560004f425a608e64fe1cd77e596486b1f5e5.zip
refactor(systemtags): Replace security annotations with respective attributes
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'apps')
-rw-r--r--apps/systemtags/lib/Controller/LastUsedController.php5
1 files 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);