[TASK] Fix deprecated things in sysnote
[Packages/TYPO3.CMS.git] / typo3 / sysext / sys_note / Classes / Controller / NoteController.php
index 5019db5..ead576d 100644 (file)
@@ -55,7 +55,7 @@ class NoteController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController
                if (empty($pids) || empty($GLOBALS['BE_USER']->user['uid'])) {
                        return '';
                }
-               $author = $this->backendUserRepository->findByUid($GLOBALS['BE_USER']->user['uid']);
+               $author = $this->backendUserRepository->findByIdentifier($GLOBALS['BE_USER']->user['uid']);
                $notes = $this->sysNoteRepository->findByPidsAndAuthor($pids, $author);
                $this->view->assign('notes', $notes);
        }