Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-21310

Generalize on the pre-edit document check

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 15.9-rc-1
    • 15.8-rc-1
    • Old Core
    • None
    • Unit
    • Unknown
    • Pull Request accepted

    Description

      Currently, there is a single pre-edit check: a message is displayed to the user before editing if the document belongs to an extension.

      We have identified a growing need for this kind of checks for other reasons.

      For instance, raise a warning if editing the document would lead to broken macro because the current user does not have enough (e.g., script) rights.

      Consequently, is is interesting to provide a way for extensions to contribute their own pre-edit checks.

      Impacted code:

      Other use cases that would benefit from this page protection check:

      • modification of mandatory documents (especially delete)
      • Replication extension needs it to protect pages which are only replicated one way (REPLICAT-113)

      Attachments

        Issue Links

          Activity

            People

              mleduc Manuel Leduc
              mleduc Manuel Leduc
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: