I'm having an issue with add forms where a relation choice will not search for objects for users who are not a Site Administrator. Instead, it sits there with the load icon spinning.
At one point, after going in to the zope manager and removing all error types from the errors ignored, I did get a 'you don't have permission error, but it didn't specify what the missing permission was. Unfortunately, I can't seem to replicate this either.
My schema:
class IMyContentType(model.schema):
distributor = RelationChoice(title=u"Distributor",
source=CatalogSource(portal_type='Organization'),
required=False
)
form.widget('distributor',
RelatedItemsFieldWidget,
pattern_options={
'selectableTypes': ['Organization',],
'basePath':'/',
}
)
The users are all able to access the Organizations through navigation and the issue I'm having is only in Add Forms. When a user visits the Edit Form, the relation field works, the user being able to type and getting organization they want.
I did try specifying basePath to where the organizations are stored in case that made a difference, but the path it set was butchered, like it removed certain characters. (i.e. '/organizations' gave '/izations').
I assume this might be a permissions error. Is there a specific permission for using a related items/related field items widget for an Add Form?