Skip to content

unable to get the logeed in user data on home page

getting 0 when using use MagentoAuthorizationModelUserContextInterface::getUserId()
on the home page block in cms_index_index.xml layout file.