I'm trying to restore a content having restricted attributes like this:
<restrict-to>
<cms:cannot read-write-direction="write"/>
</restrict-to>
I should be able to restore this version anyway.
Two solutions, different impacts:
- Create a EditRestoredContentFunction with the _canWriteModelItem() always returning true. It needs to update all workflow files to modify the restore action with the right action. => Update all attributes of the content.
- Remove the view parameter from parameters sent to EditContentFunction by RestoreRevisionFunction. Then the EditContentFunction will build the view with received values and manage itself the non-editable values. => Only update the non-restricted attributes of the content.
- Bloque
-
ODF-2059 Impossible de restaurer un contenu ODF depuis son historique
- Closed