[ZDP] BackTalk to Document The Zope Book (2.6 Edition)/Appendix B:
API Reference
webmaster at zope.org
webmaster at zope.org
Sat Nov 1 13:00:19 EST 2003
A comment to the paragraph below was recently added via http://zope.org/Documentation/Books/ZopeBook/2_6Edition/AppendixB.stx#2-13
---------------
This interface needs to be supported by objects that
are returned by user validation and used for access control.
% Anonymous User - July 12, 2002 3:32 pm:
i don't seem to be able to access these methods from DTML...
example?
% Anonymous User - Nov. 1, 2003 1:00 pm:
_.SecurityGetUser() returns an AuthenticatedUser reference. So do something like
_.SecurityGetUser().has_role('foo')
More information about the ZDP
mailing list