[Zope] Getting user permissions

Andy McKay andym@ActiveState.com
Wed, 16 May 2001 10:47:23 -0700


Im trying to check that a user has permission to do something:

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

I get 1 for everything. Is has_permission the correct call?

Cheers.
--
  Andy McKay.