[Zope] Getting user permissions

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


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

http://www.zope.org//Members/ksmith99/MailDigestWiki/PermissionChecking

says:

user.has_permission(permission_name, object)


> 
> I get 1 for everything. Is has_permission the correct call?
> 
> Cheers.
> --
>   Andy McKay.
> 
> 
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>