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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.