[Zope] ZSQL Method and AUTHENTICATED_USER

Thomas Weiner weiner@tu-harburg.de
Tue, 24 Aug 1999 14:30:44 +0200


Using the AUTHENTICATED_USER object in a ZSQL method seems to fail.

For Example:

select *
from verteiler
<!--#if "AUTHENTICATED_USER.has_role('somerole')"-->
where
Verteiler_ID = 23
or
Verteiler_ID = 24
<!--#/if-->

is leading to an 'Error value: AUTHENTICATED_USER'.

Am I missing something here?


Regards,
Thomas
-- 
fon: ++49 (0)40 42878 3781
fax: ++49 (0)40 42878 2728