Skip to content

Commit 82f9381

Browse files
committed
refactor(systemtags): Replace security annotations with respective attributes
Signed-off-by: provokateurin <[email protected]>
1 parent 212a621 commit 82f9381

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

apps/systemtags/lib/Controller/LastUsedController.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
namespace OCA\SystemTags\Controller;
77

88
use OCP\AppFramework\Controller;
9+
use OCP\AppFramework\Http\Attribute\NoAdminRequired;
910
use OCP\AppFramework\Http\DataResponse;
1011
use OCP\IConfig;
1112
use OCP\IRequest;
@@ -31,9 +32,7 @@ public function __construct($appName, IRequest $request, IConfig $config, IUserS
3132
$this->userSession = $userSession;
3233
}
3334

34-
/**
35-
* @NoAdminRequired
36-
*/
35+
#[NoAdminRequired]
3736
public function getLastUsedTagIds() {
3837
$lastUsed = $this->config->getUserValue($this->userSession->getUser()->getUID(), 'systemtags', 'last_used', '[]');
3938
$tagIds = json_decode($lastUsed, true);

0 commit comments

Comments
 (0)