Forums / Setup & design / How do I check whether a user is logged in?

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

How do I check whether a user is logged in?

Author Message

Sander Jansen

Wednesday 16 July 2003 7:20:26 am

I can't find it anywhere in the doc's... but how do I check whether a user is logged in or not? (goal is to combine the user and admin sections by printing a set of admin buttons when someone is logged in).

Jan Borsodi

Wednesday 16 July 2003 7:52:21 am

Try
{fetch(user,current_user).is_logged_in}
it will return true or false.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq