Closed msom closed 10 years ago
@msom thats how the selectable roles are generated:
The default Plone roles have a role utility each.
We are looking up these utilities and check for each role whether the current user is allowed to grant this role to another user (e.g. Sharing page: Delegate Editor role
). If the user is allowed to grant the role, it is added to the list.
The role_filter
is used for removing roles from this list.
The Reviewer
-role is always removed - I'm not sure why :confused:
Depending on the setting allow_multiple_roles
(portal_registry), the Reader
-role (the idea is that if you enable allow_multiple_roles
you have checkboxes and a workflow which combines roles, if you disable it you have a workflow where you do not combine roles and therefore each role is "standalone").
If you want to make custom roles selectable, make sure you register a role utility. If you want to customize the roles further, you may want to subclass or reimplement the vocabulary.
Does that help you? What exactly are you trying to achieve?
Great, thanks! (I reimplementing the vocabulary)
Short question: How can the keyword arguments of a vocabulary (e.g. role_filter in LocalRolesForDisplay) be set?