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

Checking for delete right is not correctly performed from the API

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 1.1 M4
    • 1.1 M3
    • {Unused} APIs
    • None

    Description

      For example,

      $xwiki.checkAccess($context.user, "delete")

      returns false if the current user doesn't have admin rights, even if the document can indeed be deleted. This is caused by the fact that the method uses a phony document, and the creator is not correctly set on that document.

      Attachments

        Issue Links

          Activity

            People

              sdumitriu Sergiu Dumitriu
              sdumitriu Sergiu Dumitriu
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: