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

In some conditions wiki macro with user visibility are not registered with the proper user

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.1, 3.0 RC1
    • Fix Version/s: 3.0, 3.1 M1
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      UserComponentManager is using documentaccessbrodge getCurrentUser() which does not return the full user reference so if you save a wiki macro on the main wiki you will not be able to use in on a subwiki because its registered with "XWiki.user" and when you try to use it the context user is "xwiki:XWiki.user".

        Attachments

          Activity

            People

            • Assignee:
              tmortagne Thomas Mortagne
              Reporter:
              tmortagne Thomas Mortagne
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: