Skip to content

Commit

Permalink
refactor(systemtags): Replace security annotations with respective at…
Browse files Browse the repository at this point in the history
…tributes

Signed-off-by: provokateurin <kate@provokateurin.de>
  • Loading branch information
provokateurin committed Jul 27, 2024
1 parent 212a621 commit 6415600
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/systemtags/lib/Controller/LastUsedController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -31,9 +32,7 @@ public function __construct($appName, IRequest $request, IConfig $config, IUserS
$this->userSession = $userSession;
}

/**
* @NoAdminRequired
*/
#[NoAdminRequired]
public function getLastUsedTagIds() {
$lastUsed = $this->config->getUserValue($this->userSession->getUser()->getUID(), 'systemtags', 'last_used', '[]');
$tagIds = json_decode($lastUsed, true);
Expand Down

0 comments on commit 6415600

Please sign in to comment.