Skip to content

Commit

Permalink
Merge pull request nextcloud#46817 from nextcloud/refactor/systemtags…
Browse files Browse the repository at this point in the history
…/security-attributes
  • Loading branch information
provokateurin authored Jul 29, 2024
2 parents 20e054c + 6415600 commit 1af3a66
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 1af3a66

Please sign in to comment.