Merge pull request #46817 from nextcloud/refactor/systemtags/security-attributes

pull/46846/head
Kate 2024-07-29 09:23:21 +07:00 committed by GitHub
commit 1af3a66b2a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 3 deletions

@ -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);