Personal tools
You are here: Home Lists ZPUG DC List Archives 2005 2005-08 Plone acl_users to check a given user's local role / John Kavanagh <jkavanagh@earthsat.com>
Navigation
Log in


Forgot your password?
New user?
Mailing Lists
You can read our ZPUGDC mailing list archives online.
You can subscribe to our mailing list:
Book Review

The Definitive Guide to Plone

Reviewer: joel
 

Plone acl_users to check a given user's local role / John Kavanagh <jkavanagh@earthsat.com>

Plone acl_users to check a given user's local role
John Kavanagh <jkavanagh(at)earthsat.com>
2005-08-22 13:48:56 [ FULL ]
ZPUGDC:

Using acl_users on a Plone content item, is there a function with the 
arguments userid and role that will return true/false if the given 
userid has the given local role on that content item?

I'm familiar with getLocalRolesForDisplay. Unfortunately, it requires 
repeating across an entire local role list to match an individual user 
and additional function calls if that user has a role through a group.

Anyone seen an elegant solution?
[...]

Powered by Plone, the Open Source Content Management System

This site conforms to the following standards: