Uploaded image for project: '{RETIRED} XWiki Wiki Manager Application'
  1. {RETIRED} XWiki Wiki Manager Application
  2. XAWM-134

Remove user's programming rights requirement by instead using absolute page references

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Won't Fix
    • Major
    • None
    • 1.24
    • Documents
    • None
    • manager programming rights patch

    Description

      Currently, in order to use the WikiManager application, you need to:
      1) be an Admin
      2) have Programming Rights

      As far as I can see, the 2nd requirement (PR) comes from the fact that, in certain places in the velocity code, instead of using absolute page references like:

      $xwiki.getDocument("$subwikiName:XWiki.XWikiPreferences")
      

      ... we are using restricted API, changing the database in the context and using relative references like:

      $xcontext.setDatabase($subwikiName)
      "XWiki.XWikiPreferences"
      

      I don`t know if there are other locations or cases that require programming rights, but from a first look, making the above changes would remove this requirement.

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            enygma Eduard Moraru
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: