chg: [appcontroller] Breadcrumbs and notifications are fetched only if the user is logged in
parent
249892c3e0
commit
dd3a1b8a15
|
@ -153,11 +153,13 @@ class AppController extends Controller
|
||||||
|
|
||||||
public function beforeRender(EventInterface $event)
|
public function beforeRender(EventInterface $event)
|
||||||
{
|
{
|
||||||
|
if (!empty($this->request->getAttribute('identity'))) {
|
||||||
if (!$this->ParamHandler->isRest()) {
|
if (!$this->ParamHandler->isRest()) {
|
||||||
$this->set('breadcrumb', $this->Navigation->getBreadcrumb());
|
$this->set('breadcrumb', $this->Navigation->getBreadcrumb());
|
||||||
$this->set('notifications', $this->Notification->getNotifications());
|
$this->set('notifications', $this->Notification->getNotifications());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private function authApiUser(): void
|
private function authApiUser(): void
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue