.. include:: /Includes.rst.txt
.. _typo3-fluid-be-security-ifauthenticated:
===========================
be.security.ifAuthenticated
===========================
This ViewHelper implements an ifAuthenticated/else condition for backend
users and backend groups.
Examples
========
Basic usage::
This is being shown whenever a BE user is logged in
Everything inside the :html:`` tag is being displayed
if the user is authenticated with any backend user account.
IfAuthenticated / then / else::
This is being shown in case you have access.
This is being displayed in case you do not have access.
Everything inside the :html:`` is displayed the backend user is logged in.
:html:`` is displayed if no backend user is logged in.
Arguments
=========
.. _be.security.ifauthenticated_then:
then
----
:aspect:`DataType`
mixed
:aspect:`Required`
false
:aspect:`Description`
Value to be returned if the condition if met.
.. _be.security.ifauthenticated_else:
else
----
:aspect:`DataType`
mixed
:aspect:`Required`
false
:aspect:`Description`
Value to be returned if the condition if not met.