I'm having a heck of time with proxy roles.
My site has a 'mini-admin' role. Each mini-admin manages a few aspects
of a subgroup of users.
In particular, each mini-admin has to be able to give his users the
Customer local role on a specific folder.
This Script object more or less does it:
pm = context.portal_membership
pm.setLocalRoles( obj=context,
member_ids=[userid],
member_role='Customer' )
run with proxy_roles (via the tab) of Customer and Manager works, but
only if the mini-admin, separately, is given Manager local_role on the
folder.
I don't understand how the proxy_roles setting interacts with the roles
the user running the script already has. Couldn't a script that was
proxied as Manager then be run as any authenticated user, and have
manager privileges?
|