Issue Bug Closed

#87895ViewHelper <f:be.security.ifAuthenticated> does not work for editors

Marco Kuprat 03/13/19, 10:05 updated 03/26/20, 16:47

Description

The description says:

Everything inside the <f:be.ifAuthenticated> tag is being displayed if you are authenticated with any BE user account.

This works only if the user is logged in as admin, not if he is logged in as editor.

The method “evaluateCondition” returns:

return isset($GLOBALS['BE_USER']) && $GLOBALS['BE_USER']->user['uid'] > 0;

But $GLOBALS[‘BE_USER’] is null for editors.

Reviews 0

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