Hi,
I have a managed model "Product" which has a hasmany relation to "ProductVariations". Now i have the problem if the logged in user has not the FullAdministration right in his SecurityGroup, the ProductVariation records in the HasManyComplexTableFIeld are not Editable by that user.
I know that i could make this editable by just placing an "function canEdit(){return true;}" in the ProductVariation DataObject. But for me this is no option cause this class is part of the EcommerceModule i dont want to change. This is why i use a DataObjectDecorator for the Variations.
The problem now is, that it does not work if i place the 'canEdit' method in this decorator. The method is just not called at all.
Changing the HasManyComplexTableField's permissions via setPermissions() doesnt make a difference too.
Thanks in advance for your help.
Cheers,
Matze