On Wed, 28 Jun 2000, J. Atwood wrote:
dtml-if "AUTHENTICATED_USER.has_permission('View', '')"
Do something
/dtml-if
Here: http://sun.med.ru/pcgi/Random/ I test visitors this way:
!--#if "AUTHENTICATED_USER.getUserName() == 'Anonymous User'"--
Read-Only ADmin Login: Broad/B, password:
This should be easy, but has me a little confused.
to get a an AUTHENTICATED_USER permission I use...
dtml-if "AUTHENTICATED_USER.has_permission('Permission Name', '')"
Do something
/dtml-if
But how do I test to see if ANONYMOUS has a permission?
Thanks,
J
On Wed, 28 Jun 2000, J. Atwood wrote:
But how do I test to see if ANONYMOUS has a permission?
Anonymous is AUTHENTICATED_USER, too :)
Oleg.(All opinions are mine and not of my employer)
Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [Zope] Getting anonymous permissions
On Wed, 28 Jun 2000, J. Atwood wrote:
But how do I test to see if ANONYMOUS has a permission?
Anonymous is AUTHENTICATED_USER, too :)
Oleg.(All opinions are mine and not of my employer)
Oleg Broyt