Let's talk a bit …
Dec 3rd
Keyword fields are tied to allowRolesToAddKeywords roles
For a project, we have added some extended fields on contents. Those fields use KeywordWidget
widget (same as Plone ‘Subject’ tags).
We wanted to have a custom permission on those fields, so we used :
read_permission=permissions.OurCustomPermission write_permission=permissions.OurCustomPermission
But it didn’t work : the field title and label displayed correctly (when we have the permission) but the widget never happeared.
Why ?
Because the KeywordWidget
template use allowRolesToAddKeywords
(from portal_properties
/ site_properties
) to filter who can add new keywords. So that “permission” will impact your custom fields too !
There has been tickets / discussion about allowRolesToAddKeywords, but that never changed.
Hope that noone else would get bitten by this once-for-all permission on keyword widgets.