Issue Bug Rejected

#97590Fluid ViewHelper for Frontend Authentication don't respect isLoggedIn property

Cristian Buja 05/09/22, 13:47 updated 05/10/22, 05:13

Description

Fluid Viewhelper for frontend authentication check id of user and not isLoggedIn property.

If someone call FrontendAuthentication::hideActiveLogin this viewhelper don’t work as aspected.

TYPO3 version ^10

Suggestion:

change

return GeneralUtility::makeInstance(Context::class)->getPropertyFromAspect('frontend.user', 'id', 0) > 0;

with

return GeneralUtility::makeInstance(Context::class)->getPropertyFromAspect('frontend.user', 'isLoggedIn', false);

in viewhelper class.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.