[Zope] Getting user permissions

Steve Drees drees@the-bridge.net
Wed, 16 May 2001 13:06:55 -0500


>         user = self.REQUEST['AUTHENTICATED_USER']
>         for p in ['Foo',]:
>             print user.has_permission(p, parent)


SecurityGetUser is the blessed way to get a user object.
> I get 1 for everything. Is has_permission the correct call?

That I'm not sure of.