class Omeka_Application_Resource_Currentuser

Package: Application\Resource

Retrive the User record corresponding to the authenticated user.

If the user record is not retrievable (invalid ID), then the authenticationID will be cleared.


Retrieve the User record associated with the authenticated user.

Note that this returns null when no User is authenticated. Priorto 1.4, this returned boolean false. For forward-compatibility, thishas been changed to null in 1.4. This is because in future versions,User will implement Zend_Role_Interface. Zend_Acl accepts null asa valid role, but it throws exceptions for boolean false (tries toconvert it to the empty string).