mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
Merge pull request #46817 from nextcloud/refactor/systemtags/security-attributes
This commit is contained in:
commit
1af3a66b2a
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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue