On Sunday, July 21, 2002, at 05:23 pm, Florent Guillaume wrote:
In article <109986E0-983C-11D6-84BA-000393876536@bangor.ac.uk> you write:
On Monday, July 15, 2002, at 10:38 pm, Chris Withers wrote:
Sion Morris wrote:
This is what I'm attempting to use here:
group=context.acl_users.getGroupById('OMT') #where 'OMT' is the name of the group. users = group.getUsers() return users
except an error is raised: "Error Value: You are not allowed to access getUsers in this context"!
Does the person executing this script have the 'Manage Users' permission? If not, have you tried giving the script a proxy role which has this permission?
The script returns the same error when executed by a user with manager role and when the script has the manager proxy role.
I'm stumped.
Can you try to add a security.declareObjectProtected(ManageUsers) just after the security = ClassSecurityInfo() in the BasicGroup class ? (in UserFolderWithGroups.py)
Tell me if it works for you.
It doesn't make a different. I still get the same error. I've also tried adding the declareObjectProtected on the Group class and that didn't work either. Changing the security declaration for the getUsers method in class Group to security.declarePublic('getUsers') works as expected though. Sion