Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-11242

Impossible to restore a content with restricted attributes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.5.10, 4.6.0
    • 4.5.3, 4.6.0
    • None
    • None
    • 4.6 M6

      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:

      1. 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.
      2. 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.

            bmaurel Bérénice Maurel
            bmaurel Bérénice Maurel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: