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

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1 M3
    • Fix Version/s: 1.1 M4
    • Component/s: {Unused} APIs
    • Labels:
      None
    • Similar issues:

      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

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

                Dates

                Created:
                Updated:
                Resolved: