[Zope-CMF] checking for local role
Tres Seaver
tseaver@zope.com
25 Jul 2002 09:28:23 -0400
On Wed, 2002-07-24 at 18:33, Joseph Bella wrote:
> What would be the best way to check to see if a
> particular user has a particular local role granted to
> him somewhere within the tree (but not necessarily in
> the current context)?
Instead of 'here', pass that object:
here.portal_membership.getAuthenticatedMember().has_role('Foo',here)"
becomes
here.portal_membership.getAuthenticatedMember().has_role('Foo',obj)"
Tres.
--
===============================================================
Tres Seaver tseaver@zope.com
Zope Corporation "Zope Dealers" http://www.zope.com