I think you should solve this issue by defining security on your File document (you can make a specialization if required) rather than by analyzing references.
Yes. I want to select a user so Bailiff has an 1-0 association with System.user.
Image of the domain model and the form:
Thanks a lot for your time and patience :)
Still the same problem. I think it has something to do with the user roles, because if i make a new form with a datagrid and try to pull up all the Bailiffs, it isn't working either.
Is there anything more you have to do to link a user role to an enitity apart from creating the user role and specifying the module roles?