fix: [unauthed] users internal error fixed

cli-modification-summary
iglocska 2022-08-24 11:42:38 +02:00
parent d35a674505
commit 4c1ce31d50
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 3 additions and 1 deletions

View File

@ -12,7 +12,9 @@ class BaseNavigation
{ {
$this->bcf = $bcf; $this->bcf = $bcf;
$this->request = $request; $this->request = $request;
$this->currentUserId = $this->request->getAttribute('identity')->getIdentifier(); if (!empty($this->request->getAttribute('identity')->getIdentifier())) {
$this->currentUserId = $this->request->getAttribute('identity')->getIdentifier();
}
$this->viewVars = $viewVars; $this->viewVars = $viewVars;
} }