Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-21014

No way exists to remove a ContentType draft

    Details

      Description

      Only one instance of ContentType in the draft status can exist at the given time.
      Loading or updating ContentType draft belonging to another user is not allowed.

      Therefore if the ContentType draft exists for another user, PAPI user (even if admin) can not do anything about it until user owning the draft publishes or discards it.

      In the Legacy Stack this is handled by the configurable time lock on class draft, lasting by default 2h.
      Time lock is checked at runtime, if expired old draft is discarded and new one created automatically.

      In the new kernel one option would be to amend deleteContentType() method with second parameter $status, which would enable deleting ContentType in the given state. Appropriate handler method for this already exists, so no changes to the storage engine would be needed.

      Permission to perform this would need to be defined; no counterpart in the LS exists.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Petar Spanja (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: